pwact 0.1.28__py3-none-any.whl → 0.2.0__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.
@@ -2,15 +2,17 @@ import subprocess
2
2
  import pkg_resources
3
3
  def check_envs():
4
4
  # for pwmat
5
- pass
6
- # check pwdata
7
- # try:
8
- # package_version = pkg_resources.get_distribution('pwdata').version
9
- # if pkg_resources.parse_version(min_version) <= pkg_resources.parse_version(package_version) <= pkg_resources.parse_version(max_version):
10
- # print(f"{package_name} version {package_version} is within the required range [{min_version}, {max_version}].")
11
- # return True
12
- # else:
13
- # print(f"{package_name} version {package_version} is NOT within the required range [{min_version}, {max_version}].")
14
- # return False
5
+ comm_info()
15
6
 
16
- # check PWMLFF???
7
+ def comm_info():
8
+ print("\n" + "=" * 50)
9
+ print(" PWACT Basic Information")
10
+ print("=" * 50)
11
+ print("Version: 0.2.0")
12
+ print("Compatible pwdata: >= 0.5.0")
13
+ print("Compatible MatPL: >= 2025.3")
14
+ print("Contact: support@pwmat.com")
15
+ print("Citation: https://github.com/LonxunQuantum/MatPL")
16
+ print("Manual online: http://doc.lonxun.com/PWMLFF/")
17
+ print("=" * 50)
18
+ print("\n\n")
@@ -250,11 +250,11 @@ class NepParam(object):
250
250
  error_log = "the input 'l_max' should has 3 values. The values should be [4, 0, 0] (only use three body features), [4, 2, 0] (use 3 and 4 body features) or [4, 2, 1] (use 3,4,5 body features).\n"
251
251
  raise Exception(error_log)
252
252
  if "fitting_net" in model_dict.keys():
253
- self.neuron = self.get_parameter("network_size", model_dict["fitting_net"], [100]) # number of neurons in the hidden layer
253
+ self.neuron = self.get_parameter("network_size", model_dict["fitting_net"], [40]) # number of neurons in the hidden layer
254
254
  if not isinstance(self.neuron, list):
255
255
  self.neuron = [self.neuron]
256
256
  else:
257
- self.neuron = [100]
257
+ self.neuron = [40]
258
258
  if self.neuron[-1] != 1:
259
259
  self.neuron.append(1) # output layer of fitting net
260
260
  self.set_feature_params()
@@ -231,7 +231,7 @@ class WorkFileStructure(object):
231
231
  # self._set_data_file_paths(trainSetDir, dRFeatureInputDir, dRFeatureOutputDir, trainDataPath, validDataPath)
232
232
 
233
233
  def set_nep_native_file_paths(self):
234
- self.nep_model_file = "nep_to_lmps.txt"
234
+ self.nep_model_file = "nep5.txt"
235
235
 
236
236
  def get_data_file_structure(self):
237
237
  file_dict = {}
pwact/main.py CHANGED
@@ -236,7 +236,6 @@ def kill_job():
236
236
  # system_json = json.load(open(sys.argv[3]))
237
237
  # if "work_dir" in system_json.keys():
238
238
  # os.chdir(system_json["work_dir"])
239
- os.chdir("/data/home/wuxingxing/codespace/dev_pwact/al_dir/si_5_pwmat/init_bulk")
240
239
  try:
241
240
  with open("./PID", 'r') as rf:
242
241
  pid_str_info = rf.readline().split()
@@ -24,7 +24,7 @@ def make_pair_style(md_type, forcefiled, atom_type:list[int], dump_info:str):
24
24
  pair_names = ""
25
25
  for fi in forcefiled:
26
26
  pair_names += "{} ".format(os.path.basename(fi))
27
- pair_style = "pair_style pwmlff {} {} {}\n".format(len(forcefiled), pair_names, dump_info)
27
+ pair_style = "pair_style matpl {} {}\n".format(pair_names, dump_info)
28
28
  atom_names = " ".join(map(str, atom_type))
29
29
  pair_style += "pair_coeff * * {}\n".format(atom_names)
30
30
  return pair_style
pwact/utils/constant.py CHANGED
@@ -407,7 +407,7 @@ class TRAIN_FILE_STRUCTUR:
407
407
 
408
408
  # nep model
409
409
  nep_model_name ="nep_model.ckpt"
410
- nep_model_lmps = "nep_to_lmps.txt"
410
+ nep_model_lmps = "nep5.txt"
411
411
 
412
412
  class EXPLORE_FILE_STRUCTURE:
413
413
  kpu= "kpu"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwact
3
- Version: 0.1.28
3
+ Version: 0.2.0
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
@@ -1,7 +1,7 @@
1
1
  pwact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pwact/main.py,sha256=_EApUrHe-rfOiYMeI-FbnGxFtL6iOdua7vrM3ezXs3c,15186
2
+ pwact/main.py,sha256=gsWBnVrBXLbclzonbYhZKPgVOQxb3_FVfKCezlJZz9Y,15100
3
3
  pwact/active_learning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pwact/active_learning/environment.py,sha256=KvyMaOXrM-HMMma4SnoOQFO6fZxDsk0Fsyyy7xqfGCo,684
4
+ pwact/active_learning/environment.py,sha256=1vzOWnCNR2OXMFKz4DjQF2wb0aw1Xkjnz7cy1YGQrus,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=hrE-vMJBlvgxTiG0WFG86RX2Gi7ImtutF0PoT2RTTN0,21312
7
7
  pwact/active_learning/explore/select_image.py,sha256=bDhDbdu6aoFfAdq_z3ha6qnxDGrQjfoHPVOKH7_u1VQ,14470
@@ -30,16 +30,16 @@ pwact/active_learning/user_input/scf_param.py,sha256=tHmGnWrWiZ1dD-EZHfvWtzKGnT6
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
32
32
  pwact/active_learning/user_input/train_param/model_param.py,sha256=4-bJAGOJDTLT11lLqpEZAWMqgen7zghHESfHeb0UUb4,4574
33
- pwact/active_learning/user_input/train_param/nep_param.py,sha256=IoaQNwaXQFDXA7ET8NKptrkhvTE4lDknp23VccG6A1I,21251
33
+ pwact/active_learning/user_input/train_param/nep_param.py,sha256=04GEKqT2miZYxgVtxTEGIWJW5mUZriPcvwfgdp7IL0g,21249
34
34
  pwact/active_learning/user_input/train_param/nn_feature_type.py,sha256=eGmqfsPTlIpftzvUqHV_VziGQuUZ_KKqek3SQKZl85o,15640
35
35
  pwact/active_learning/user_input/train_param/optimizer_param.py,sha256=1Vl_BulrLkJmOPSetyn2HJMcwjizkkjrhvz0x8DzLRU,13084
36
36
  pwact/active_learning/user_input/train_param/train_param.py,sha256=rpLmOncwqQ82Hudwwl-VzZKJv2jCtrsCsJN2UpuHqKg,16640
37
- pwact/active_learning/user_input/train_param/work_file_param.py,sha256=uFeCTJS7OS33NDaQBUtQZsKXTeHZpVVfybwCJgDW4x0,12246
37
+ pwact/active_learning/user_input/train_param/work_file_param.py,sha256=3sQiHcquQO9hw0JexiMXkuf01gy871yjYz9GEZ3Icoo,12239
38
38
  pwact/bin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  pwact/data_format/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  pwact/data_format/configop.py,sha256=6JA84cK7Ck-t1z3iLz3pPVJ-q4srhDiQQhs9-G-cxY0,11772
41
41
  pwact/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- pwact/utils/constant.py,sha256=nx1zArBWAwC17gIx7G-KHAhf_wrU1kPsfSxB3hr3Fuw,18764
42
+ pwact/utils/constant.py,sha256=swLs-0Lulc22ZvJ_cwEYTO8r5cxB3y5YB2EnwxhfRNE,18757
43
43
  pwact/utils/file_operation.py,sha256=1W5kGzGAznbAs2vyUhh5sDim62qQOkTPgphSOe_oDvI,9536
44
44
  pwact/utils/format_input_output.py,sha256=oYFydQy3-btXzieO2O2LbHFoeRyhPnLVE4c5TNgS-IQ,1798
45
45
  pwact/utils/json_operation.py,sha256=BqBsnIjk1URoMW_s2yu7Gk8IBxlir-oo6ivt8P3RIqg,1794
@@ -51,13 +51,13 @@ pwact/utils/app_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
51
51
  pwact/utils/app_lib/common.py,sha256=lQmI-9Qumq62MNjr-eVlLL88ISDHBOb6vAfYYFcDIgM,6040
52
52
  pwact/utils/app_lib/cp2k.py,sha256=txd-eMDUOsWPug395WJOQz3aqhwz7eU4hcEZIWTF1OY,15492
53
53
  pwact/utils/app_lib/cp2k_dp.py,sha256=VP4gyPGhLcMAqAjrqCQSUiiGlESNlyYz7Gs3Q4QoUHo,6912
54
- pwact/utils/app_lib/lammps.py,sha256=2oxHJHdDxfDDWWmnjo0gMNwgGvxABwuDgDlb8kbhgfk,8037
54
+ pwact/utils/app_lib/lammps.py,sha256=t3nkBqwkViO6UbnInGKAHiwVngHKayeat2pPEtaZZIU,8015
55
55
  pwact/utils/app_lib/pwmat.py,sha256=PTRPkG_d00ibGhpCe2-4M7MW3dx2ZuAyb9hT2jl_LAs,18047
56
56
  pwact/utils/draw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  pwact/utils/draw/hist_model_devi.py,sha256=o1Try-ekith2A7S6u1mt3zuTqaQwyw5tdURReh8BeLY,4945
58
- pwact-0.1.28.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
59
- pwact-0.1.28.dist-info/METADATA,sha256=nAiDrWaNcIP_GubrMMqGYpDX6AMCXtoawCE6tA41zvI,3659
60
- pwact-0.1.28.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
61
- pwact-0.1.28.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
62
- pwact-0.1.28.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
63
- pwact-0.1.28.dist-info/RECORD,,
58
+ pwact-0.2.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
59
+ pwact-0.2.0.dist-info/METADATA,sha256=wlqbUATqsi_RBbpLC_1SytmOIFiUtIKqTIXNLs2bV9U,3658
60
+ pwact-0.2.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
61
+ pwact-0.2.0.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
62
+ pwact-0.2.0.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
63
+ pwact-0.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: bdist_wheel (0.38.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5