pwact 0.1.14__py3-none-any.whl → 0.1.16__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/init_bulk/init_bulk_run.py +6 -6
- pwact/active_learning/user_input/resource.py +4 -4
- pwact/data_format/configop.py +7 -1
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/METADATA +1 -1
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/RECORD +9 -9
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/LICENSE +0 -0
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/WHEEL +0 -0
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/entry_points.txt +0 -0
- {pwact-0.1.14.dist-info → pwact-0.1.16.dist-info}/top_level.txt +0 -0
|
@@ -166,9 +166,9 @@ def do_collection(resource: Resource, input_param:InitBulkParam):
|
|
|
166
166
|
write_to_file(result_save_path, result_lines, mode='w')
|
|
167
167
|
|
|
168
168
|
def scancel_jobs(work_dir):
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
relax_job = os.path.join(work_dir, TEMP_STRUCTURE.tmp_init_bulk_dir, INIT_BULK.relax)
|
|
170
|
+
scf_job = os.path.join(work_dir, TEMP_STRUCTURE.tmp_init_bulk_dir, INIT_BULK.aimd)
|
|
171
|
+
print("Cancel aimd task:")
|
|
172
|
+
scancle_job(scf_job)
|
|
173
|
+
print("Cancel relax task:")
|
|
174
|
+
scancle_job(relax_job)
|
|
@@ -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
|
|
pwact/data_format/configop.py
CHANGED
|
@@ -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,
|
|
@@ -8,7 +8,7 @@ pwact/active_learning/explore/select_image.py,sha256=QAoD1CxaC5Xn3W5rQHxTNWMN53K
|
|
|
8
8
|
pwact/active_learning/init_bulk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pwact/active_learning/init_bulk/aimd.py,sha256=hfhxK2su7qaA-yp1Ql6U_2cPRH6yoMfcwWI97nurxqU,10549
|
|
10
10
|
pwact/active_learning/init_bulk/duplicate_scale.py,sha256=oVFB6umOhI8xGxNTPowvztxYgJPGAopU2bvV_NaHpdM,9463
|
|
11
|
-
pwact/active_learning/init_bulk/init_bulk_run.py,sha256=
|
|
11
|
+
pwact/active_learning/init_bulk/init_bulk_run.py,sha256=FG1EAXvuBJ1ERCg2htFVooif8mxcx4XyVgOoKF-1B_Q,8683
|
|
12
12
|
pwact/active_learning/init_bulk/relabel.py,sha256=08AzQzRtPbWxVmOkTgFlcalWF-jX1qHh2I4H5Umtz0Q,10520
|
|
13
13
|
pwact/active_learning/init_bulk/relax.py,sha256=VC448HxMqwzysXPrJtstLkuFbfbThRyAsD63vMQrAJo,10520
|
|
14
14
|
pwact/active_learning/label/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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=
|
|
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
|
|
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.
|
|
55
|
-
pwact-0.1.
|
|
56
|
-
pwact-0.1.
|
|
57
|
-
pwact-0.1.
|
|
58
|
-
pwact-0.1.
|
|
59
|
-
pwact-0.1.
|
|
54
|
+
pwact-0.1.16.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
55
|
+
pwact-0.1.16.dist-info/METADATA,sha256=776PpNZB1FS6PJNf3jviTFmKX5iZ4wBtK2utsQh0Hes,3659
|
|
56
|
+
pwact-0.1.16.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
57
|
+
pwact-0.1.16.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
|
|
58
|
+
pwact-0.1.16.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
|
|
59
|
+
pwact-0.1.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|