pwact 0.3.1__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.
@@ -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.0")
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")
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
- for pwdata in pwdata_lists: # /path/iter.0001/label/result/md.000.sys.001.t.001
187
- data_name = os.path.basename(pwdata) # md.000.sys.001.t.001
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/md.000.sys.001.t.001
190
+ target_dir = os.path.join(save_dir, iter_name, data_name) #./final_pwdata/iter.0001
190
191
  copy_dir(pwdata, target_dir)
191
- # print("target: {}\n source: {}\n".format(target_dir, pwdata))
192
- res_data_list.append(target_dir)
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 ','
@@ -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.1
4
- Summary: PWACT is an open-source automated active learning platform based on PWMLFF for efficient data sampling.
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=jCqNp0tn8P7R8EdPt81bqZlC-Ixjp_rnnFxMT7JAfXI,15375
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=oDeSMCnBnwRe3bA0l9miDyQGaIE-gcf2ML2eOE7rPJk,512
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
@@ -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=j4yp9DoPshTxTX3g7SS-yuEbBVhuoYNNZdAv2mq3efE,876
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.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
63
- pwact-0.3.1.dist-info/METADATA,sha256=lDIsIiByaSvWIEV_cLqEAqWTuHVkHn9bvs825xYZwnk,612
64
- pwact-0.3.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
65
- pwact-0.3.1.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
66
- pwact-0.3.1.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
67
- pwact-0.3.1.dist-info/RECORD,,
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