pwact 0.1.14__py3-none-any.whl → 0.1.15__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.
@@ -82,10 +82,6 @@ class Resource(object):
82
82
  else:
83
83
  tmp_source = "{}\n".format(source)
84
84
  env_script += tmp_source
85
-
86
- if len(env_list) > 0:
87
- for source in env_list:
88
- env_script += source + "\n"
89
85
 
90
86
  if len(module_list) > 0:
91
87
  for source in module_list:
@@ -95,6 +91,10 @@ class Resource(object):
95
91
  tmp_source = "{}\n".format(source)
96
92
  env_script += tmp_source
97
93
 
94
+ if len(env_list) > 0:
95
+ for source in env_list:
96
+ env_script += source + "\n"
97
+
98
98
  resource = ResourceDetail(command, group_size, parallel_num, number_node, gpu_per_node, cpu_per_node, queue_name, custom_flags, env_script)
99
99
  return resource
100
100
 
@@ -179,7 +179,7 @@ def extract_pwdata(data_list:list[str],
179
179
  if i % interval == 0:
180
180
  tmp.append(image_data.images[i])
181
181
  image_data.images = tmp
182
-
182
+
183
183
  image_data.to(
184
184
  output_path=datasets_path,
185
185
  save_format=PWDATA.pwmlff_npy,
@@ -194,6 +194,12 @@ def extract_pwdata(data_list:list[str],
194
194
  else:
195
195
  for data_path in data_list:
196
196
  image_data = Config(data_format, data_path)
197
+ if interval > 1:
198
+ tmp = []
199
+ for i in range(0, len(image_data.images)):
200
+ if i % interval == 0:
201
+ tmp.append(image_data.images[i])
202
+ image_data.images = tmp
197
203
  image_data.to(
198
204
  output_path=datasets_path,
199
205
  save_format=PWDATA.pwmlff_npy,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwact
3
- Version: 0.1.14
3
+ Version: 0.1.15
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
@@ -25,7 +25,7 @@ pwact/active_learning/user_input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
25
25
  pwact/active_learning/user_input/cmd_infos.py,sha256=oiSgtGk85zyujNXbB86Igs1YiBIOssWw-6UVs3lQtYc,2974
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
- pwact/active_learning/user_input/resource.py,sha256=27v9hTuyDGf7LGz8K7KxgRP-UcBNU5cByKo2aei8MZE,6820
28
+ pwact/active_learning/user_input/resource.py,sha256=bg1rkdjIzuj7pDUvp6h1yMWFT0PqYzH4BfX5tJ7MZzc,6812
29
29
  pwact/active_learning/user_input/scf_param.py,sha256=vpqWKqbmhy3G2TX2_mcqaxyhiGFo1kpedMrpe86_Ttw,8888
30
30
  pwact/active_learning/user_input/workdir.py,sha256=64J3wBbYzy6ztYHs513YHfEIF5d8zwv_WpF-U9HOEkA,8245
31
31
  pwact/active_learning/user_input/train_param/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -37,7 +37,7 @@ pwact/active_learning/user_input/train_param/train_param.py,sha256=hsdVojgQZbQGS
37
37
  pwact/active_learning/user_input/train_param/work_file_param.py,sha256=tmedoLodmkcSK6uRIXTML0BhXFkgE96zPX0_kAXmGoo,11631
38
38
  pwact/bin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  pwact/data_format/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- pwact/data_format/configop.py,sha256=-zIG-2P2is9uPleT2aSRCn8pQ6lPp4ZAdlYJ2SnXpbY,12780
40
+ pwact/data_format/configop.py,sha256=Pl93qfhQLBxxAjuGyleEx2AKG6pWpWJPJKiZSPw7FnA,13020
41
41
  pwact/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  pwact/utils/constant.py,sha256=ZM43rI0JNHA_nVKdRW1YvPGCEkomRNgdmA3_L8hAVSY,18379
43
43
  pwact/utils/file_operation.py,sha256=O26X-qUQuSkVRSVnJx4BPDrPtueVW7sfNvdJ_Y-PN2Q,8554
@@ -51,9 +51,9 @@ pwact/utils/app_lib/common.py,sha256=KiKZHrk_SDwP9b8ZORor8rXzZbU-vSSjliqlYvjyvPQ
51
51
  pwact/utils/app_lib/cp2k.py,sha256=vPTofDEz8Qd1A3gjMkMxXF8qWQLVz3XDc6-hSjRG7j0,10499
52
52
  pwact/utils/app_lib/lammps.py,sha256=2oxHJHdDxfDDWWmnjo0gMNwgGvxABwuDgDlb8kbhgfk,8037
53
53
  pwact/utils/app_lib/pwmat.py,sha256=l3O_AXExy0Sgkz0RQolrvRg0ZfHLLySFteQZ2dhqfhs,16543
54
- pwact-0.1.14.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
55
- pwact-0.1.14.dist-info/METADATA,sha256=bJ-shP3ABQimNvowqNdR6tBwlcCEQPFedt4CIJpwT1c,3659
56
- pwact-0.1.14.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
57
- pwact-0.1.14.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
58
- pwact-0.1.14.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
59
- pwact-0.1.14.dist-info/RECORD,,
54
+ pwact-0.1.15.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
55
+ pwact-0.1.15.dist-info/METADATA,sha256=LfoeIIOCqFn0s-UfrGP9Hj1YAnnzud3CzR--4ebQloo,3659
56
+ pwact-0.1.15.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
57
+ pwact-0.1.15.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
58
+ pwact-0.1.15.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
59
+ pwact-0.1.15.dist-info/RECORD,,
File without changes