mlatom 2.0.3__tar.gz → 2.0.4__tar.gz

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.
Files changed (83) hide show
  1. {MLatom-2.0.3/src/MLatom.egg-info → MLatom-2.0.4}/PKG-INFO +1 -1
  2. {MLatom-2.0.3 → MLatom-2.0.4}/setup.py +9 -5
  3. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/ML_NEA.py +18 -8
  4. MLatom-2.0.4/src/MLatom/__init__.py +0 -0
  5. MLatom-2.0.4/src/MLatom/interfaces/DeePMDkit/__init__.py +0 -0
  6. MLatom-2.0.4/src/MLatom/interfaces/GAP/__init__.py +0 -0
  7. MLatom-2.0.4/src/MLatom/interfaces/PhysNet/__init__.py +0 -0
  8. MLatom-2.0.4/src/MLatom/interfaces/TorchANI/__init__.py +0 -0
  9. MLatom-2.0.4/src/MLatom/interfaces/__init__.py +0 -0
  10. MLatom-2.0.4/src/MLatom/interfaces/sGDML/__init__.py +0 -0
  11. MLatom-2.0.4/src/MLatom/mlatom_gui.py +1348 -0
  12. MLatom-2.0.4/src/MLatom/shell_cmd.py +14 -0
  13. {MLatom-2.0.3 → MLatom-2.0.4/src/MLatom.egg-info}/PKG-INFO +1 -1
  14. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom.egg-info/SOURCES.txt +10 -2
  15. MLatom-2.0.4/src/MLatom.egg-info/entry_points.txt +6 -0
  16. MLatom-2.0.4/src/MLatom.egg-info/top_level.txt +1 -0
  17. MLatom-2.0.3/MLatomF +0 -12
  18. MLatom-2.0.3/mlatom +0 -12
  19. MLatom-2.0.3/src/MLatom.egg-info/top_level.txt +0 -1
  20. {MLatom-2.0.3 → MLatom-2.0.4}/LICENSE.txt +0 -0
  21. {MLatom-2.0.3 → MLatom-2.0.4}/README.md +0 -0
  22. {MLatom-2.0.3 → MLatom-2.0.4}/setup.cfg +0 -0
  23. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/LICENSE.CC-BY-NC-ND-4.0 +0 -0
  24. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatom.py +0 -0
  25. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF +0 -0
  26. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/A_KRR.f90 +0 -0
  27. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/A_KRR_kernel.f90 +0 -0
  28. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/D_CoulombMatrix.f90 +0 -0
  29. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/D_rel2eq.f90 +0 -0
  30. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/MLatomF.f90 +0 -0
  31. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/MLatomFInfo.f90 +0 -0
  32. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/MLmodel.f90 +0 -0
  33. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/Makefile +0 -0
  34. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/Makefile.intel +0 -0
  35. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/analyze.f90 +0 -0
  36. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/constants.f90 +0 -0
  37. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/cs.cpp +0 -0
  38. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/dataset.f90 +0 -0
  39. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/mathUtils.f90 +0 -0
  40. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/molDescr.f90 +0 -0
  41. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/optionsModule.f90 +0 -0
  42. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/precision.f90 +0 -0
  43. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/sampling.f90 +0 -0
  44. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/statistics.f90 +0 -0
  45. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/stopper.f90 +0 -0
  46. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/strings.f90 +0 -0
  47. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/timing.f90 +0 -0
  48. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLatomF_src/types.f90 +0 -0
  49. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/MLtasks.py +0 -0
  50. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/README +0 -0
  51. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/args_class.py +0 -0
  52. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/cs.so +0 -0
  53. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/doc.py +0 -0
  54. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/documentation/installation.txt +0 -0
  55. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/E_FCI_451.dat +0 -0
  56. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/E_UHF_451.dat +0 -0
  57. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/R_451.dat +0 -0
  58. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/isubtrain.dat +0 -0
  59. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/itest.dat +0 -0
  60. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/itrain.dat +0 -0
  61. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/ivalidate.dat +0 -0
  62. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/mlatom.inp +0 -0
  63. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/mlatom.saved +0 -0
  64. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/example/test.sh +0 -0
  65. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/header.py +0 -0
  66. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interface_MLatomF.py +0 -0
  67. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/DP_inference.py +0 -0
  68. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/interface_DeePMDkit.py +0 -0
  69. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/template.json +0 -0
  70. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/GAP/interface_GAP.py +0 -0
  71. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/PhysNet_predict.py +0 -0
  72. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/PhysNet_train.py +0 -0
  73. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/interface_PhysNet.py +0 -0
  74. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/TorchANI_predict.py +0 -0
  75. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/TorchANI_train.py +0 -0
  76. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/interface_TorchANI.py +0 -0
  77. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/sGDML/interface_sGDML.py +0 -0
  78. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/interfaces/sGDML/sgdml_dataset_from_extxyz.py +0 -0
  79. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/ref.json +0 -0
  80. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/sliceData.py +0 -0
  81. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom/stopper.py +0 -0
  82. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom.egg-info/dependency_links.txt +0 -0
  83. {MLatom-2.0.3 → MLatom-2.0.4}/src/MLatom.egg-info/requires.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MLatom
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: A Package for Atomistic Simulations with Machine Learning
5
5
  Home-page: http://mlatom.com
6
6
  Author: Pavlo O. Dral
@@ -43,7 +43,7 @@ with open(os.path.join(here, 'README.md')) as f:
43
43
 
44
44
  setup(
45
45
  name = pkg_name,
46
- version = "2.0.3",
46
+ version = "2.0.4",
47
47
  author = "Pavlo O. Dral",
48
48
  author_email = "admin@mlatom.com",
49
49
  license = 'CC BY-NC-ND 4.0', # https://creativecommons.org/licenses/by-nc-nd/4.0/
@@ -54,7 +54,7 @@ setup(
54
54
  python_requires='>=3.7',
55
55
  packages = find_packages('src'),
56
56
  package_dir = {'' : 'src'},
57
- scripts = ['mlatom', 'MLatomF'],
57
+ # scripts = ['mlatom', 'MLatomF'],
58
58
  package_data = {"": ['MLatomF', '*.json', 'cs.so']},
59
59
  classifiers = [
60
60
  "Programming Language :: Python :: 3",
@@ -64,9 +64,13 @@ setup(
64
64
  "Environment :: Console",
65
65
  ],
66
66
  install_requires = ['numpy', 'matplotlib'],
67
- # entry_points = {
68
- # 'console_scripts' : ['mlatom=MLatom.MLatom:MLatomMainCls']
69
- # }
67
+ entry_points = {
68
+ 'console_scripts' : ['mlatom-gui = MLatom.mlatom_gui:main',
69
+ 'mlatom_gui = MLatom.mlatom_gui:main',
70
+ 'mlatom = MLatom.shell_cmd:mlatom',
71
+ # 'MLatom.py = MLatom.shell_cmd:mlatom',
72
+ 'MLatomF = MLatom.shell_cmd:MLatomF']
73
+ }
70
74
  # cmdclass = {
71
75
  # "install_scripts": InstallScripts
72
76
  # }
@@ -749,13 +749,13 @@ class GaussCalc(LinuxInterface):
749
749
  self.cd(orig_folder)
750
750
 
751
751
  def process_one_gauss_log(self, log_file: str) -> Tuple[List[float], List[float]]:
752
- cmd = '''grep 'Excited State' %s | awk '{print $5}' > %s/SPC_E.TEMP''' % (log_file, self.temp_path)
752
+ cmd = '''grep -E 'Excited State +?[0-9]+' %s | awk '{print $5}' > %s/SPC_E.TEMP''' % (log_file, self.temp_path)
753
753
  err_code, _ = self.exec(cmd)
754
754
  E_file = os.path.join(self.temp_path, 'SPC_E.TEMP')
755
755
  if err_code != 0:
756
756
  err_print(f'extract E value from one gaussian log failed with error code: {err_code}')
757
757
 
758
- cmd = '''grep 'Excited State' %s | awk '{print $9}' | sed s/f=//g > %s/SPC_f.TEMP''' % (log_file, self.temp_path)
758
+ cmd = '''grep -E 'Excited State +?[0-9]+' %s | awk '{print $9}' | sed s/f=//g > %s/SPC_f.TEMP''' % (log_file, self.temp_path)
759
759
  err_code, _ = self.exec(cmd)
760
760
  f_file = os.path.join(self.temp_path, 'SPC_f.TEMP')
761
761
  if err_code != 0:
@@ -795,8 +795,10 @@ class NewtonXCalc(LinuxInterface):
795
795
  self.cd(self.NX_path)
796
796
  self.change_geom(geom_path)
797
797
  self.run_dynamic(freq_path, atom_num, NEA_point)
798
+ eq_mole = Molecule()
799
+ eq_mole.read_xyz(geom_path)
800
+ self.multi_xyz.append(eq_mole)
798
801
  self.restore_multi_xyz(atom_num)
799
- pass
800
802
 
801
803
  def change_geom(self, geom_path: str) -> None:
802
804
  # check whether trnasfer success (delete /dev/null and then check the output log)
@@ -823,11 +825,18 @@ class NewtonXCalc(LinuxInterface):
823
825
  with open(inp_name, 'w') as f:
824
826
  f.write(nx_inp)
825
827
  # err_code, out = self.exec(f'$NX/initcond.pl > NX-MD.log 2>&1')
826
- err_code, out = self.exec('$NX/mk_qvector < initqp_input ; ' \
827
- '$NX/weight < initqp_input &> weight.log ; ' \
828
- '$NX/initqp < initqp_input &> initqp.log ')
829
- if err_code != 0 or out != '':
830
- err_print(f'Newton-X calculation failed!!!\nstatus code: {err_code} (0 stands for normal exit, none 0 stands for error)\noutput: {out}')
828
+ try:
829
+ err_code, out = self.exec('$NX/mk_qvector < initqp_input ; ' \
830
+ '$NX/weight < initqp_input &> weight.log ; ' \
831
+ '$NX/initqp < initqp_input &> initqp.log ')
832
+ if err_code != 0 or out != '':
833
+ err_print(f'Newton-X calculation failed!!!\nstatus code: {err_code} (0 stands for normal exit, none 0 stands for error)\noutput: {out}')
834
+ except:
835
+ os.system('$NX/mk_qvector < initqp_input ; ' \
836
+ '$NX/weight < initqp_input &> weight.log ; ' \
837
+ '$NX/initqp < initqp_input &> initqp.log ')
838
+ import time
839
+ time.sleep(0.01)
831
840
 
832
841
  def restore_multi_xyz(self, atom_num: int):
833
842
  with open('ini_qv') as f:
@@ -850,6 +859,7 @@ class NewtonXCalc(LinuxInterface):
850
859
  else:
851
860
  err_print('processing ini_qv failed! exit!')
852
861
  exit()
862
+ self.multi_xyz.append(mole)
853
863
 
854
864
  def _process_ini_qv_line(self, splited_line: List[str]) -> List[float]:
855
865
  xyz = map(lambda x: float(x.replace('D', 'e')), splited_line[0: 3])
File without changes
File without changes
File without changes
File without changes
File without changes