pwact 0.1.24__py3-none-any.whl → 0.1.25__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.
@@ -21,19 +21,23 @@ def cmd_infos(cmd_type=None):
21
21
  cmd_info += "'pwact kill init_bulk' for 'init_bulk' tasks\n"
22
22
  cmd_info += "'pwact kill run' for 'run' tasks\n\n"
23
23
 
24
+ cmd_info += "gather_pwdata".lower() + "\n"
25
+ cmd_info += "you could use this method to extract pwdatas after active learing done.\nFor more detail for this command, you could use 'pwact gather_pwdata -h'\n\n"
26
+
27
+ cmd_info += "filter" + "\n"
28
+ cmd_info += "you could use this method to test the selection results corresponding to the upper and lower limit settings, you could use 'pwact filter -h'\n"
29
+
24
30
  cmd_info += "to_pwdata".lower() + "\n"
25
31
  cmd_info += "(This method has been abandoned, new conversion methods refer to the pwdata documentation http://doc.lonxun.com/PWMLFF/Appendix-2/)\n\n"
26
- cmd_info += "you could use this method to change outcars or movements to pwdata format.\nFor more detail for this command, you could use 'PWact to_pwdata -h'\n\n"
32
+ cmd_info += "you could use this method to change outcars or movements to pwdata format.\nFor more detail for this command, you could use 'pwact to_pwdata -h'\n\n"
27
33
 
28
- cmd_info += "gather_pwdata".lower() + "\n"
29
- cmd_info += "you could use this method to extract pwdatas after active learing done.\nFor more detail for this command, you could use 'PWact gather_pwdata -h'\n\n"
30
-
31
34
  cmd_info += "\n\n"
32
35
  cmd_info += "examples of pwact are located at the dir 'pwact/example'\n"
33
36
  cmd_info += "you can alse download them from github link:\n"
34
37
  cmd_info += "https://github.com/LonxunQuantum/PWact/tree/main/pwact/example\n\n"
35
38
  cmd_info += "or download from BaiduNetdisk included the calculation results of examples:\n"
36
39
  cmd_info += "https://pan.baidu.com/s/14E0u_7cpntiBZgg-C1S5XA?pwd=pwmt\n\n"
40
+
37
41
  elif cmd_type == "init_bulk":
38
42
  cmd_info = cmd_info_init_bulk()
39
43
  elif cmd_type == "run":
pwact/utils/tmp.py CHANGED
@@ -3,7 +3,7 @@ import os, sys, glob
3
3
  import numpy as np
4
4
 
5
5
  def count_pwdata():
6
- work_dir = "/data/home/wuxingxing/datas/debugs/dengjiapei/run_iter/iter.0000/label/result_bk"
6
+ work_dir = "/data/home/wuxingxing/datas/debugs/dengjiapei/run_iter/mlmd_pwdata"
7
7
  dir_list = glob.glob(os.path.join(work_dir, "*"))
8
8
  res = []
9
9
  for dir in dir_list:
@@ -24,6 +24,40 @@ def count_outmlmd():
24
24
  mlmds = glob.glob(os.path.join(work_dir, "*/*/*/OUT.MLMD"))
25
25
  print(len(mlmds))
26
26
 
27
+ def save_mlmd():
28
+ work_dir = "/data/home/wuxingxing/datas/debugs/dengjiapei/run_iter"
29
+ data_list = glob.glob(os.path.join(work_dir, "iter.*/label/scf/*/*/*/OUT.MLMD"))
30
+ datasets_path = "/data/home/wuxingxing/datas/debugs/dengjiapei/run_iter/mlmd_pwdata"
31
+ # data_name = datasets_path
32
+ image_data = None
33
+ for data_path in data_list:
34
+ if image_data is not None:
35
+ tmp_config = Config("pwmat/movement", data_path)
36
+ # if not isinstance(tmp_config, list):
37
+ # tmp_config = [tmp_config]
38
+ image_data.images.extend(tmp_config.images)
39
+ else:
40
+ image_data = Config("pwmat/movement", data_path)
41
+
42
+ if not isinstance(image_data.images, list):
43
+ image_data.images = [image_data.images]
44
+
45
+ # if not isinstance(image_data, list):
46
+ # image_data = [image_data]
47
+ image_data.to(
48
+ output_path=datasets_path,
49
+ save_format="pwmlff/npy",
50
+ train_ratio = 0.8,
51
+ train_data_path="train",
52
+ valid_data_path="valid",
53
+ random=True,
54
+ seed = 2024,
55
+ retain_raw = False
56
+ )
57
+ print(len(image_data.images))
58
+
59
+
27
60
  if __name__=="__main__":
28
61
  count_pwdata()
29
- count_outmlmd()
62
+ # count_outmlmd()
63
+ # save_mlmd()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwact
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: PWACT is an open-source automated active learning platform based on PWMLFF for efficient data sampling.
5
5
  Home-page: https://github.com/LonxunQuantum/PWact
6
6
  Author: LonxunQuantum
@@ -22,7 +22,7 @@ pwact/active_learning/train/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
22
22
  pwact/active_learning/train/dp_kpu.py,sha256=GkGKEGhLmOvPERqgTkf_0_vD9zOEPlBX2N7vuSQG_-c,9317
23
23
  pwact/active_learning/train/train_model.py,sha256=NXqTKrl7Lb_UGt2-Lq_gLM9iZDAZFY09nxP_aGtBdrE,10525
24
24
  pwact/active_learning/user_input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- pwact/active_learning/user_input/cmd_infos.py,sha256=F6heviYEE0Mm-UITHpei2DhCGuhQMUU0NHxWp_EQAao,3530
25
+ pwact/active_learning/user_input/cmd_infos.py,sha256=3oWe9AhCxM9rWcRs3bezD7pb1TC5o0bCcvg-k36xEPY,3726
26
26
  pwact/active_learning/user_input/init_bulk_input.py,sha256=NCUAB1xpa67MXHRRWAkmWZjkQbTibE4EjmtlOmr0HdQ,6762
27
27
  pwact/active_learning/user_input/iter_input.py,sha256=zwFCI6dDFIEVWitEqBBZP7TtrSvxMbmSUEPiM0Z8ZOk,10732
28
28
  pwact/active_learning/user_input/resource.py,sha256=bg1rkdjIzuj7pDUvp6h1yMWFT0PqYzH4BfX5tJ7MZzc,6812
@@ -46,16 +46,16 @@ pwact/utils/json_operation.py,sha256=BqBsnIjk1URoMW_s2yu7Gk8IBxlir-oo6ivt8P3RIqg
46
46
  pwact/utils/pre_al_data_util.py,sha256=QE-axnVYUIyORFiVs-WK9-UaJlMUFY816_rSyYOOJc8,2542
47
47
  pwact/utils/process_tool.py,sha256=trzp6GbP_SYFiS_vheobV_FI4PSWVJvX3xHsFQ6DWME,478
48
48
  pwact/utils/slurm_script.py,sha256=mgueOrhYteg6XXvJitdjmbV4lzxMujuna9Jxr3wgC7Q,8237
49
- pwact/utils/tmp.py,sha256=M0YSQ0GRmc5je_Lan6IgU_QIOhTfsqQMjx2PiJhvbM0,999
49
+ pwact/utils/tmp.py,sha256=SFzYEcNz-5rB0k2Os2tScBqiW3DMCepkuTqcsSE7RrQ,2277
50
50
  pwact/utils/app_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  pwact/utils/app_lib/common.py,sha256=lQmI-9Qumq62MNjr-eVlLL88ISDHBOb6vAfYYFcDIgM,6040
52
52
  pwact/utils/app_lib/cp2k.py,sha256=ljhCCHmZ2kfoXEXn5O7-D56EgTLn2a7H3y_TIkHiasY,13157
53
53
  pwact/utils/app_lib/cp2k_dp.py,sha256=VP4gyPGhLcMAqAjrqCQSUiiGlESNlyYz7Gs3Q4QoUHo,6912
54
54
  pwact/utils/app_lib/lammps.py,sha256=2oxHJHdDxfDDWWmnjo0gMNwgGvxABwuDgDlb8kbhgfk,8037
55
55
  pwact/utils/app_lib/pwmat.py,sha256=PTRPkG_d00ibGhpCe2-4M7MW3dx2ZuAyb9hT2jl_LAs,18047
56
- pwact-0.1.24.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
57
- pwact-0.1.24.dist-info/METADATA,sha256=5llOmNd82K_g3yifIjuqaFGJde7cXSMyJnsF3Q3eRFg,3659
58
- pwact-0.1.24.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
59
- pwact-0.1.24.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
60
- pwact-0.1.24.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
61
- pwact-0.1.24.dist-info/RECORD,,
56
+ pwact-0.1.25.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
57
+ pwact-0.1.25.dist-info/METADATA,sha256=zcuKIBxeaicBdKupPFrFCKBd5x04ErxG4lhPX_7uTJQ,3659
58
+ pwact-0.1.25.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
59
+ pwact-0.1.25.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
60
+ pwact-0.1.25.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
61
+ pwact-0.1.25.dist-info/RECORD,,
File without changes