venuspython 1.1.3__tar.gz → 1.1.5__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 (25) hide show
  1. {venuspython-1.1.3 → venuspython-1.1.5}/PKG-INFO +1 -1
  2. venuspython-1.1.5/venuspy/__init__.py +1 -0
  3. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/psi4calc.py +15 -3
  4. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/cli.py +23 -1
  5. {venuspython-1.1.3 → venuspython-1.1.5}/venuspython.egg-info/PKG-INFO +1 -1
  6. venuspython-1.1.3/venuspy/__init__.py +0 -1
  7. {venuspython-1.1.3 → venuspython-1.1.5}/README.md +0 -0
  8. {venuspython-1.1.3 → venuspython-1.1.5}/pyproject.toml +0 -0
  9. {venuspython-1.1.3 → venuspython-1.1.5}/setup.cfg +0 -0
  10. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/bagelcalc.py +0 -0
  11. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/chempotpycalc.py +0 -0
  12. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/minisgdmlcalc.py +0 -0
  13. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/mopaccalc.py +0 -0
  14. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/nwchemcalc.py +0 -0
  15. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/nwchemexcalc.py +0 -0
  16. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/original_nwchemexcalc.py +0 -0
  17. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/physnetcalc.py +0 -0
  18. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/qcengineGAMESScalc.py +0 -0
  19. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/calc/xtbcalc.py +0 -0
  20. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/initialSampling.py +0 -0
  21. {venuspython-1.1.3 → venuspython-1.1.5}/venuspy/md.py +0 -0
  22. {venuspython-1.1.3 → venuspython-1.1.5}/venuspython.egg-info/SOURCES.txt +0 -0
  23. {venuspython-1.1.3 → venuspython-1.1.5}/venuspython.egg-info/dependency_links.txt +0 -0
  24. {venuspython-1.1.3 → venuspython-1.1.5}/venuspython.egg-info/entry_points.txt +0 -0
  25. {venuspython-1.1.3 → venuspython-1.1.5}/venuspython.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: venuspython
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: VENUSpy Initial Sampling and Molecular Dynamics
5
5
  Keywords: moleculardynamics,initialsampling
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -0,0 +1 @@
1
+ __version__ = "1.1.5"
@@ -53,6 +53,7 @@ class psi4calculator(Calculator):
53
53
  self.referencemethod = 'uhf'
54
54
  self.freeze_core = 0
55
55
  self.mp2_type = "df"
56
+ self.soscf = 0
56
57
  self.qc_module = None
57
58
  self.df_ints_io = "None"
58
59
  self.dft_spherical_points = 302 # The default for DFT jobs
@@ -122,7 +123,7 @@ class psi4calculator(Calculator):
122
123
  psi4.set_options({'qc_module': self.qc_module})
123
124
 
124
125
  # Some alternate psi4 SCF convergence options for second-order SCF (SOSCF):
125
- if (False):
126
+ if (self.soscf>0):
126
127
  psi4.set_options({'soscf': True})
127
128
  psi4.set_options({'soscf_max_iter': self.maxiter})
128
129
  psi4.set_options({'soscf_conv': self.d_convergence})
@@ -163,7 +164,7 @@ class psi4calculator(Calculator):
163
164
  # This is for initial guesses (only done ONCE at the start)
164
165
  if (not (self.init_wfn is None)):
165
166
  try:
166
- print("Reading in initial wavefunction: ({0})".format(self.init_wfn),flush=True)
167
+ print("Reading in initial wavefunction: ({0})".format(self.init_wfn),flush=True) # with help from ALLEN VINCENT
167
168
  e, self.ref_wfn = psi4.energy(self.psi4method,restart_file=self.init_wfn,write_orbitals=self.movecs,return_wfn=True)
168
169
  print("Succeeded reading in initial wavefunction!",flush=True)
169
170
  except:
@@ -193,9 +194,20 @@ class psi4calculator(Calculator):
193
194
  psi4.set_options({'e_convergence': tmp_e_convergence})
194
195
  else:
195
196
  try:
196
- e, self.ref_wfn = psi4.energy(self.psi4method,restart_file=self.movecs,write_orbitals=self.movecs,return_wfn=True)
197
+ e, tmp_wfn = psi4.energy(self.psi4method,restart_file=self.movecs,write_orbitals=self.movecs,return_wfn=True)
198
+ self.ref_wfn = tmp_wfn
197
199
  break
198
200
  except SCFConvergenceError:
201
+
202
+ # Try using SOSCF (if soscf=1 in the input file) before continuing
203
+ if (self.soscf==1):
204
+ try:
205
+ psi4.set_options({'soscf': True})
206
+ e, self.ref_wfn = psi4.energy(self.psi4method,restart_file=self.movecs,write_orbitals=self.movecs,return_wfn=True)
207
+ break
208
+ except SCFConvergenceError:
209
+ pass
210
+
199
211
  print("SCF convergence (0) ... will now use a SAD guess")
200
212
  self.ref_wfn = None
201
213
 
@@ -75,6 +75,12 @@ try:
75
75
  except ImportError:
76
76
  print("#VENUS WARNING: CHEMPOTPY HAS NOT BEEN LOADED ... IT WILL NOT BE AVAILABLE FOR INITIAL SAMPLING")
77
77
 
78
+ # Try importing fairchem
79
+ try:
80
+ from fairchem.core import pretrained_mlip, FAIRChemCalculator
81
+ except ImportError:
82
+ print("#VENUS WARNING: FAIRCHEM HAS NOT BEEN LOADED ... IT WILL NOT BE AVAILABLE FOR INITIAL SAMPLING")
83
+
78
84
  # Try importing Schnet
79
85
  try:
80
86
  import schnetpack as spk
@@ -82,6 +88,12 @@ try:
82
88
  except ImportError:
83
89
  print("#VENUS WARNING: SCHNET HAS NOT BEEN LOADED ... IT WILL NOT BE AVAILABLE FOR INITIAL SAMPLING")
84
90
 
91
+ # Try importing MACE (with help from RITU RAJ)
92
+ try:
93
+ from mace.calculators import MACECalculator
94
+ except ImportError:
95
+ print("#VENUS WARNING: MACE HAS NOT BEEN LOADED ... IT WILL NOT BE AVAILABLE FOR INITIAL SAMPLING")
96
+
85
97
  # Try importing Physnet
86
98
  try:
87
99
  from .calc.physnetcalc import PNCalculator
@@ -252,7 +264,17 @@ def main():
252
264
  try_schnet = False
253
265
  try_sgdml = False
254
266
  try_qcenginegamess = False
255
- if (input_path.endswith(('.npz',))):
267
+ if (input_path.endswith(('.model',))):
268
+ print("#VENUS INPUT FILE '"+input_path+"' LOOKS LIKE A MACE FILE SO WILL ATTEMPT TO READ IT IN AS SUCH...")
269
+ calc = MACECalculator(model_paths=input_path, default_dtype="float64")
270
+
271
+ elif (input_path.endswith(('.pt',)) or input_path.endswith(('.pth',))):
272
+ print("#VENUS INPUT FILE '"+input_path+"' LOOKS LIKE AN UMA(FAIRCHEM) FILE SO WILL ATTEMPT TO READ IT IN AS SUCH...")
273
+ # predictor = pretrained_mlip.get_predict_unit("uma-s-1p1", device="cpu")
274
+ predictor = pretrained_mlip.get_predict_unit(input_path, device="cpu")
275
+ calc = FAIRChemCalculator(predictor, task_name="omol")
276
+
277
+ elif (input_path.endswith(('.npz',))):
256
278
 
257
279
  print("#VENUS INPUT FILE '"+input_path+"' LOOKS LIKE A SGDML FILE SO WILL ATTEMPT TO READ IT IN AS SUCH...")
258
280
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: venuspython
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: VENUSpy Initial Sampling and Molecular Dynamics
5
5
  Keywords: moleculardynamics,initialsampling
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -1 +0,0 @@
1
- __version__ = "1.1.3"
File without changes
File without changes
File without changes
File without changes