pwact 0.2.3__py3-none-any.whl → 0.2.4__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/init_bulk/init_bulk_run.py +3 -16
- {pwact-0.2.3.dist-info → pwact-0.2.4.dist-info}/METADATA +1 -1
- {pwact-0.2.3.dist-info → pwact-0.2.4.dist-info}/RECORD +8 -8
- {pwact-0.2.3.dist-info → pwact-0.2.4.dist-info}/LICENSE +0 -0
- {pwact-0.2.3.dist-info → pwact-0.2.4.dist-info}/WHEEL +0 -0
- {pwact-0.2.3.dist-info → pwact-0.2.4.dist-info}/entry_points.txt +0 -0
- {pwact-0.2.3.dist-info → pwact-0.2.4.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.2.
|
|
11
|
+
print("Version: 0.2.3")
|
|
12
12
|
print("Compatible pwdata: >= 0.5.0")
|
|
13
13
|
print("Compatible MatPL: >= 2025.3")
|
|
14
14
|
print("Contact: support@pwmat.com")
|
|
@@ -87,7 +87,7 @@ def do_collection(resource: Resource, input_param:InitBulkParam):
|
|
|
87
87
|
real_bigmodel_dir = os.path.join(input_param.root_dir, INIT_BULK.bigmodel)
|
|
88
88
|
real_direct_dir = os.path.join(input_param.root_dir, INIT_BULK.direct)
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
result_save_path = []
|
|
91
91
|
for init_config in init_configs:
|
|
92
92
|
init_config_name = "init_config_{}".format(init_config.config_index)
|
|
93
93
|
|
|
@@ -130,22 +130,9 @@ def do_collection(resource: Resource, input_param:InitBulkParam):
|
|
|
130
130
|
data_shuffle=input_param.data_shuffle,
|
|
131
131
|
interval=1
|
|
132
132
|
)
|
|
133
|
-
|
|
134
|
-
if input_param.data_format == PWDATA.extxyz:
|
|
135
|
-
pwdatas = search_files(real_collection_dir, "*/{}".format(INIT_BULK.get_save_format(input_param.data_format)))
|
|
136
|
-
elif input_param.data_format == PWDATA.pwmlff_npy: # */PWdata/*.npy
|
|
137
|
-
tmp = search_files(real_collection_dir, "*/{}/*/position.npy".format(INIT_BULK.get_save_format(input_param.data_format)))
|
|
138
|
-
pwdatas = [os.path.dirname(_) for _ in tmp]
|
|
139
|
-
if len(pwdatas) > 0:
|
|
140
|
-
pwdatas = sorted(pwdatas)
|
|
141
|
-
result_lines = ["\"{}\",".format(_) for _ in pwdatas]
|
|
142
|
-
result_lines = "\n".join(result_lines)
|
|
143
|
-
# result_lines = result_lines[:-1] # Filter the last ','
|
|
144
|
-
result_save_path = os.path.join(collection_dir, INIT_BULK.npy_format_name)
|
|
145
|
-
write_to_file(result_save_path, result_lines, mode='w')
|
|
133
|
+
result_save_path.append(os.path.join(real_collection_dir, init_config_name, INIT_BULK.get_save_format(input_param.data_format)))
|
|
146
134
|
|
|
147
135
|
#6 convert relabel datas
|
|
148
|
-
result_save_path = []
|
|
149
136
|
if input_param.is_scf:
|
|
150
137
|
source_scf = search_files(relabel_dir,\
|
|
151
138
|
"*/{}".format(DFT_STYLE.get_scf_config(resource.dft_style)))
|
|
@@ -175,7 +162,7 @@ def do_collection(resource: Resource, input_param:InitBulkParam):
|
|
|
175
162
|
result_save_path.append(os.path.join(real_collection_dir, INIT_BULK.bigmodel, INIT_BULK.direct, INIT_BULK.get_save_format(input_param.data_format)))
|
|
176
163
|
# copy bigmodel and direct files to realdir
|
|
177
164
|
copy_dir(bigmodel_dir, os.path.join(collection_dir, INIT_BULK.bigmodel))
|
|
178
|
-
|
|
165
|
+
|
|
179
166
|
if len(result_save_path) > 0:
|
|
180
167
|
_path_path = []
|
|
181
168
|
for _data_path in result_save_path:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pwact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
pwact/main.py,sha256=jCqNp0tn8P7R8EdPt81bqZlC-Ixjp_rnnFxMT7JAfXI,15375
|
|
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=XLaaz5m2E6XUQcCOGOsnJpB5B-ucdkeUActV-Puoytw,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
|
|
@@ -10,7 +10,7 @@ pwact/active_learning/init_bulk/aimd.py,sha256=XzDlX2vylaljQKoUnv6nrI2NfiOdHZpq8
|
|
|
10
10
|
pwact/active_learning/init_bulk/direct.py,sha256=TBB7f13wbbURDgn4_IkgRZ-rwQ3p4gviNVYIAldi97U,9680
|
|
11
11
|
pwact/active_learning/init_bulk/duplicate_scale.py,sha256=hlGAr27YJhOElMz5GMyN0wWoChia4Jj_tvENsJ3wSBs,9481
|
|
12
12
|
pwact/active_learning/init_bulk/explore.py,sha256=IAxdOHPzCWjfvrHywyOuBQG2V76rpBZtsyNLQyIMThs,15932
|
|
13
|
-
pwact/active_learning/init_bulk/init_bulk_run.py,sha256=
|
|
13
|
+
pwact/active_learning/init_bulk/init_bulk_run.py,sha256=1wXf4iFhMjrjhyI4JVRoIibE5glTrr1kadphfeEjIIU,10686
|
|
14
14
|
pwact/active_learning/init_bulk/relabel.py,sha256=gP_qqMWT_hMIcwFBdNmyVBHBpkQS52BzbQK80rGTvPQ,11974
|
|
15
15
|
pwact/active_learning/init_bulk/relax.py,sha256=edyCZLEylUckIwOLBa55agUMo-aedj0dvoyG165YpuE,10450
|
|
16
16
|
pwact/active_learning/label/__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.2.
|
|
63
|
-
pwact-0.2.
|
|
64
|
-
pwact-0.2.
|
|
65
|
-
pwact-0.2.
|
|
66
|
-
pwact-0.2.
|
|
67
|
-
pwact-0.2.
|
|
62
|
+
pwact-0.2.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
63
|
+
pwact-0.2.4.dist-info/METADATA,sha256=GVYsYIyaZhRXCZ60lqRiB5_rp61QuGVvLXnzuvaapus,612
|
|
64
|
+
pwact-0.2.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
65
|
+
pwact-0.2.4.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
|
|
66
|
+
pwact-0.2.4.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
|
|
67
|
+
pwact-0.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|