pwact 0.3.0__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pwact/active_learning/environment.py +1 -1
- pwact/active_learning/user_input/iter_input.py +1 -1
- pwact/main.py +12 -6
- pwact/utils/process_tool.py +1 -1
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/METADATA +2 -2
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/RECORD +10 -10
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/LICENSE +0 -0
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/WHEEL +0 -0
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/entry_points.txt +0 -0
- {pwact-0.3.0.dist-info → pwact-0.3.2.dist-info}/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ def comm_info():
|
|
|
8
8
|
print("\n" + "=" * 50)
|
|
9
9
|
print(" PWACT Basic Information")
|
|
10
10
|
print("=" * 50)
|
|
11
|
-
print("Version: 0.3.
|
|
11
|
+
print("Version: 0.3.1")
|
|
12
12
|
print("Compatible pwdata: >= 0.5.0")
|
|
13
13
|
print("Compatible MatPL: >= 2025.3")
|
|
14
14
|
print("Contact: support@pwmat.com")
|
|
@@ -158,7 +158,7 @@ class ExploreParam(object):
|
|
|
158
158
|
elif isinstance(sys_config, dict):
|
|
159
159
|
config = os.path.join(sys_config_prefix, sys_config["config"]) if sys_config_prefix is not None else sys_config["config"]
|
|
160
160
|
config_format = get_parameter("format", sys_config, PWDATA.pwmat_config)
|
|
161
|
-
if not os.path.exists:
|
|
161
|
+
if not os.path.exists(config):
|
|
162
162
|
raise Exception("ERROR! The sys_config {} file does not exist!".format(config))
|
|
163
163
|
self.sys_configs.append(SysConfig(config, config_format))
|
|
164
164
|
|
pwact/main.py
CHANGED
|
@@ -183,14 +183,20 @@ def gather_pwmata(input_cmds):
|
|
|
183
183
|
pwdata_lists = sorted(pwdata_lists)
|
|
184
184
|
save_dir = "./final_pwdata"
|
|
185
185
|
res_data_list = []
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
|
|
187
|
+
for pwdata in pwdata_lists: # /path/iter.0001/label/result/*
|
|
188
|
+
data_name = os.path.basename(pwdata)
|
|
188
189
|
iter_name = os.path.basename(os.path.dirname(os.path.dirname(os.path.dirname(pwdata)))) #iter.0001
|
|
189
|
-
target_dir = os.path.join(save_dir, iter_name, data_name) #./final_pwdata/iter.0001
|
|
190
|
+
target_dir = os.path.join(save_dir, iter_name, data_name) #./final_pwdata/iter.0001
|
|
190
191
|
copy_dir(pwdata, target_dir)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
for path, dirList, fileList in os.walk(pwdata):
|
|
193
|
+
for _ in fileList:
|
|
194
|
+
if "train.xyz" in _:
|
|
195
|
+
res_data_list.append(os.path.join(path, _))
|
|
196
|
+
for root, dirs, files in os.walk(pwdata):
|
|
197
|
+
if 'energies.npy' in files:
|
|
198
|
+
res_data_list.append(root)
|
|
199
|
+
|
|
194
200
|
result_lines = ["\"{}\",".format(_) for _ in res_data_list]
|
|
195
201
|
result_lines = "\n".join(result_lines)
|
|
196
202
|
# result_lines = result_lines[:-1] # Filter the last ','
|
pwact/utils/process_tool.py
CHANGED
|
@@ -8,7 +8,7 @@ def kill_process(pid:str, job_id:str):
|
|
|
8
8
|
if job_id is None:
|
|
9
9
|
try:
|
|
10
10
|
# 发送终止信号 (SIGTERM) 给指定的进程
|
|
11
|
-
os.kill(pid, signal.SIGTERM)
|
|
11
|
+
os.kill(int(pid), signal.SIGTERM)
|
|
12
12
|
print(f"process {pid} has been terminated.")
|
|
13
13
|
except ProcessLookupError:
|
|
14
14
|
print(f"process {pid} non-existent.")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pwact
|
|
3
|
-
Version: 0.3.
|
|
4
|
-
Summary: PWACT is an open-source automated active learning platform based on
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: PWACT is an open-source automated active learning platform based on MatPL for efficient data sampling.
|
|
5
5
|
Home-page: https://github.com/LonxunQuantum/PWact
|
|
6
6
|
Author: LonxunQuantum
|
|
7
7
|
Author-email: lonxun@pwmat.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pwact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
pwact/main.py,sha256=
|
|
2
|
+
pwact/main.py,sha256=ZmfzShuphHUuVH9OsPV_obf0g0jK3ka9UwStim_YJ7s,15538
|
|
3
3
|
pwact/active_learning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
pwact/active_learning/environment.py,sha256=
|
|
4
|
+
pwact/active_learning/environment.py,sha256=aySFa--fTWAgIR9_PKwfJ9pLKVexmL22lJ1NTtnQuNo,512
|
|
5
5
|
pwact/active_learning/explore/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
pwact/active_learning/explore/run_model_md.py,sha256=n3f6aSMr1Cpw_cSUrlH28JwoWW7VLwUMcF1XB0ao2sw,27448
|
|
7
7
|
pwact/active_learning/explore/select_image.py,sha256=1zpTCs_15FRlffBYfy1HQ1r79p2dNM8u8ZHvPysQTvc,14597
|
|
@@ -26,7 +26,7 @@ pwact/active_learning/train/train_model.py,sha256=Hh6_yq_86Y4pqP60sbEaeCJexD9a-B
|
|
|
26
26
|
pwact/active_learning/user_input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
pwact/active_learning/user_input/cmd_infos.py,sha256=g1QW5Wi3JvmC5xEY4F-7AO1xBuJSjHG8IhZjom8haxQ,3728
|
|
28
28
|
pwact/active_learning/user_input/init_bulk_input.py,sha256=M8IlT4ABJUEwomb6eQGq8d3h1darMHtDlws1fcq077k,9422
|
|
29
|
-
pwact/active_learning/user_input/iter_input.py,sha256=
|
|
29
|
+
pwact/active_learning/user_input/iter_input.py,sha256=TctIZ3WAWQ_waGuPaK6F_uZjRKFM8oidF5iVE4SAI1o,12752
|
|
30
30
|
pwact/active_learning/user_input/resource.py,sha256=OtsJEAWmMknLyrPB309C6ipyL1fCXHriF8sjXs5pjmg,7351
|
|
31
31
|
pwact/active_learning/user_input/scf_param.py,sha256=QX_Dd6c9Q2sjV4lIKjfV7t-DgIwDKZp7fh2KY5HyKOU,11262
|
|
32
32
|
pwact/active_learning/user_input/workdir.py,sha256=64J3wBbYzy6ztYHs513YHfEIF5d8zwv_WpF-U9HOEkA,8245
|
|
@@ -46,7 +46,7 @@ pwact/utils/file_operation.py,sha256=bfLezgJHD3BRtZFm0HwSGTNBPukVNICZFpXYWMs68A4
|
|
|
46
46
|
pwact/utils/format_input_output.py,sha256=oYFydQy3-btXzieO2O2LbHFoeRyhPnLVE4c5TNgS-IQ,1798
|
|
47
47
|
pwact/utils/json_operation.py,sha256=BqBsnIjk1URoMW_s2yu7Gk8IBxlir-oo6ivt8P3RIqg,1794
|
|
48
48
|
pwact/utils/pre_al_data_util.py,sha256=QE-axnVYUIyORFiVs-WK9-UaJlMUFY816_rSyYOOJc8,2542
|
|
49
|
-
pwact/utils/process_tool.py,sha256=
|
|
49
|
+
pwact/utils/process_tool.py,sha256=bsSsS42toOWz6ZzWCq5_7TrLEBTAif5tz2FbSo4YT3E,881
|
|
50
50
|
pwact/utils/slurm_script.py,sha256=tbclNkYBVM-t8GeiLGNK2s5kxypjy8luf4ZrlHEGjjM,8278
|
|
51
51
|
pwact/utils/tmp.py,sha256=en_GltoNwfA40vSHttMRi9cEg-8xnPZlvnnBq1_vHfw,2285
|
|
52
52
|
pwact/utils/app_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -59,9 +59,9 @@ pwact/utils/app_lib/lammps.py,sha256=t3nkBqwkViO6UbnInGKAHiwVngHKayeat2pPEtaZZIU
|
|
|
59
59
|
pwact/utils/app_lib/pwmat.py,sha256=PTRPkG_d00ibGhpCe2-4M7MW3dx2ZuAyb9hT2jl_LAs,18047
|
|
60
60
|
pwact/utils/draw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
pwact/utils/draw/hist_model_devi.py,sha256=o1Try-ekith2A7S6u1mt3zuTqaQwyw5tdURReh8BeLY,4945
|
|
62
|
-
pwact-0.3.
|
|
63
|
-
pwact-0.3.
|
|
64
|
-
pwact-0.3.
|
|
65
|
-
pwact-0.3.
|
|
66
|
-
pwact-0.3.
|
|
67
|
-
pwact-0.3.
|
|
62
|
+
pwact-0.3.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
63
|
+
pwact-0.3.2.dist-info/METADATA,sha256=EhK-SDcpa7zH4uKQ881dQ3QtFtAs9y5fPqxYcI3-JTw,611
|
|
64
|
+
pwact-0.3.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
65
|
+
pwact-0.3.2.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
|
|
66
|
+
pwact-0.3.2.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
|
|
67
|
+
pwact-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|