stjames 0.0.20__tar.gz → 0.0.21__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.

Potentially problematic release.


This version of stjames might be problematic. Click here for more details.

Files changed (29) hide show
  1. {stjames-0.0.20/stjames.egg-info → stjames-0.0.21}/PKG-INFO +1 -1
  2. {stjames-0.0.20 → stjames-0.0.21}/pyproject.toml +1 -1
  3. {stjames-0.0.20 → stjames-0.0.21}/stjames/__init__.py +1 -0
  4. stjames-0.0.20/stjames/solvent_settings.py → stjames-0.0.21/stjames/_deprecated_solvent_settings.py +2 -0
  5. {stjames-0.0.20 → stjames-0.0.21}/stjames/methods.py +21 -0
  6. {stjames-0.0.20 → stjames-0.0.21}/stjames/scf_settings.py +0 -2
  7. {stjames-0.0.20 → stjames-0.0.21}/stjames/settings.py +7 -4
  8. stjames-0.0.21/stjames/solvent_settings.py +41 -0
  9. {stjames-0.0.20 → stjames-0.0.21/stjames.egg-info}/PKG-INFO +1 -1
  10. {stjames-0.0.20 → stjames-0.0.21}/stjames.egg-info/SOURCES.txt +1 -0
  11. {stjames-0.0.20 → stjames-0.0.21}/LICENSE +0 -0
  12. {stjames-0.0.20 → stjames-0.0.21}/README.md +0 -0
  13. {stjames-0.0.20 → stjames-0.0.21}/setup.cfg +0 -0
  14. {stjames-0.0.20 → stjames-0.0.21}/stjames/base.py +0 -0
  15. {stjames-0.0.20 → stjames-0.0.21}/stjames/basis_set.py +0 -0
  16. {stjames-0.0.20 → stjames-0.0.21}/stjames/calculation.py +0 -0
  17. {stjames-0.0.20 → stjames-0.0.21}/stjames/corrections.py +0 -0
  18. {stjames-0.0.20 → stjames-0.0.21}/stjames/diis_settings.py +0 -0
  19. {stjames-0.0.20 → stjames-0.0.21}/stjames/grid_settings.py +0 -0
  20. {stjames-0.0.20 → stjames-0.0.21}/stjames/int_settings.py +0 -0
  21. {stjames-0.0.20 → stjames-0.0.21}/stjames/modes.py +0 -0
  22. {stjames-0.0.20 → stjames-0.0.21}/stjames/molecule.py +0 -0
  23. {stjames-0.0.20 → stjames-0.0.21}/stjames/opt_settings.py +0 -0
  24. {stjames-0.0.20 → stjames-0.0.21}/stjames/status.py +0 -0
  25. {stjames-0.0.20 → stjames-0.0.21}/stjames/tasks.py +0 -0
  26. {stjames-0.0.20 → stjames-0.0.21}/stjames/thermochem_settings.py +0 -0
  27. {stjames-0.0.20 → stjames-0.0.21}/stjames.egg-info/dependency_links.txt +0 -0
  28. {stjames-0.0.20 → stjames-0.0.21}/stjames.egg-info/requires.txt +0 -0
  29. {stjames-0.0.20 → stjames-0.0.21}/stjames.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: standardized JSON atom/molecule encoding scheme
5
5
  Author-email: Corin Wagen <corin@rowansci.com>
6
6
  Project-URL: Homepage, https://github.com/rowansci/stjames
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stjames"
3
- version = "0.0.20"
3
+ version = "0.0.21"
4
4
  description = "standardized JSON atom/molecule encoding scheme"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -10,6 +10,7 @@ from .diis_settings import *
10
10
  from .solvent_settings import *
11
11
  from .thermochem_settings import *
12
12
  from .grid_settings import *
13
+ from .solvent_settings import *
13
14
  from .settings import *
14
15
 
15
16
  from .methods import *
@@ -5,6 +5,8 @@ from .base import Base, LowercaseStrEnum
5
5
 
6
6
  class ImplicitSolventModel(LowercaseStrEnum):
7
7
  CPCM = "cpcm"
8
+ ALPB = "alpb"
9
+ COSMO = "cosmo"
8
10
  NONE = "none"
9
11
 
10
12
 
@@ -17,10 +17,31 @@ class Method(LowercaseStrEnum):
17
17
  B97D3 = "b97-d3"
18
18
  B973C = "b97-3c"
19
19
 
20
+ # mGGA
21
+ R2SCAN = "r2scan"
22
+ TPSS = "tpss"
23
+ M06L = "m06l"
24
+
20
25
  # hybrid GGA
21
26
  PBE0 = "pbe0"
22
27
  B3LYP = "b3lyp"
23
28
  B3PW91 = "b3pw91"
29
+ B97MV = "b97m_v"
30
+
31
+ # hybrid mGGA
32
+ TPSS0 = "tpss0"
33
+ M06 = "m06"
34
+ M062X = "m062x"
35
+
36
+ # range-separated
37
+ CAMB3LYP = "camb3lyp"
38
+ WB97XD = "wb97x_d"
39
+ WB97XV = "wb97x_v"
40
+ WB97MV = "wb97m_v"
24
41
 
25
42
  # ML methods
26
43
  AIMNET2_WB97MD3 = "aimnet2_wb97md3"
44
+
45
+ # xTB methods
46
+ GFN1_XTB = "gfn1_xtb"
47
+ GFN2_XTB = "gfn2_xtb"
@@ -5,7 +5,6 @@ from .base import Base, LowercaseStrEnum
5
5
  from .int_settings import IntSettings
6
6
  from .grid_settings import GridSettings
7
7
  from .diis_settings import DIISSettings
8
- from .solvent_settings import SolventSettings
9
8
 
10
9
 
11
10
  class SCFInitMethod(LowercaseStrEnum):
@@ -29,7 +28,6 @@ class SCFSettings(Base):
29
28
  int_settings: IntSettings = IntSettings()
30
29
  grid_settings: GridSettings = GridSettings()
31
30
  diis_settings: DIISSettings = DIISSettings()
32
- solvent_settings: SolventSettings = SolventSettings()
33
31
 
34
32
  #### orthonormalization
35
33
  orthonormalization: OrthonormalizationMethod = OrthonormalizationMethod.CANONICAL
@@ -10,16 +10,19 @@ from .scf_settings import SCFSettings
10
10
  from .basis_set import BasisSet
11
11
  from .opt_settings import OptimizationSettings
12
12
  from .thermochem_settings import ThermochemistrySettings
13
+ from .solvent_settings import SolventSettings
13
14
 
14
15
 
15
16
  class Settings(Base):
16
17
  method: Method = Method.HARTREE_FOCK
17
- basis_set: Optional[BasisSet] = BasisSet(name="STO-3G")
18
+ basis_set: Optional[BasisSet] = None
18
19
  tasks: UniqueList[Task] = [Task.ENERGY, Task.CHARGE, Task.DIPOLE]
19
20
  corrections: UniqueList[Correction] = []
20
21
 
21
22
  mode: Mode = Mode.AUTO
22
23
 
24
+ solvent_settings: Optional[SolventSettings] = None
25
+
23
26
  # scf/opt settings will be set automatically based on mode, but can be overridden manually
24
27
  scf_settings: SCFSettings = SCFSettings()
25
28
  opt_settings: OptimizationSettings = OptimizationSettings()
@@ -30,8 +33,8 @@ class Settings(Base):
30
33
  def level_of_theory(self) -> str:
31
34
  if self.method in [Method.HF3C, Method.B973C, Method.AIMNET2_WB97MD3] or self.basis_set is None:
32
35
  return self.method.value
33
- elif (len(self.corrections)) == 0 or (self.method in [Method.B97D3]):
34
- return f"{self.method.value}/{self.basis_set.name.lower()}"
36
+ # elif (len(self.corrections)) == 0 or (self.method in [Method.B97D3]):
37
+ # return f"{self.method.value}/{self.basis_set.name.lower()}"
35
38
  else:
36
39
  return f"{self.method.value}-{'-'.join([c.value for c in self.corrections])}/{self.basis_set.name.lower()}"
37
40
 
@@ -63,7 +66,7 @@ class Settings(Base):
63
66
  return BasisSet(name=v)
64
67
  else:
65
68
  # "" is basically None, let's be real here...
66
- return BasisSet(name="STO-3G")
69
+ return None
67
70
  elif v is None:
68
71
  return None
69
72
  else:
@@ -0,0 +1,41 @@
1
+ from .base import Base, LowercaseStrEnum
2
+
3
+
4
+ class Solvent(LowercaseStrEnum):
5
+ WATER = "water"
6
+ NITROMETHANE = "nitromethane"
7
+ NITROBENZENE = "nitrobenzene"
8
+ TOLUENE = "toluene"
9
+ BENZENE = "benzene"
10
+ CHLOROBENZENE = "chlorobenzene"
11
+ CARBONTETRACHLORIDE = "carbontetrachloride"
12
+ DICHLOROETHANE = "dichloroethane"
13
+ DICHLOROMETHANE = "dichloromethane"
14
+ CHLOROFORM = "chloroform"
15
+ DIETHYLETHER = "diethylether"
16
+ DIISOPROPYLETHER = "diisopropylether"
17
+ DIMETHYLSULFOXIDE = "dimethylsulfoxide"
18
+ TETRAHYDROFURAN = "tetrahydrofuran"
19
+ CYCLOHEXANE = "cyclohexane"
20
+ OCTANE = "octane"
21
+ ACETICACID = "aceticacid"
22
+ HEXANE = "hexane"
23
+ ETHYLACETATE = "ethylacetate"
24
+ ACETONE = "acetone"
25
+ ACETONITRILE = "acetonitrile"
26
+ METHANOL = "methanol"
27
+ ETHANOL = "ethanol"
28
+ ISOPROPANOL = "isopropanol"
29
+ DIMETHYLACETAMIDE = "dimethylacetamide"
30
+ DIMETHYLFORMAMIDE = "dimethylformamide"
31
+
32
+
33
+ class SolventModel(LowercaseStrEnum):
34
+ CPCM = "cpcm"
35
+ ALPB = "alpb"
36
+ COSMO = "cosmo"
37
+
38
+
39
+ class SolventSettings(Base):
40
+ solvent: Solvent
41
+ model: SolventModel
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: standardized JSON atom/molecule encoding scheme
5
5
  Author-email: Corin Wagen <corin@rowansci.com>
6
6
  Project-URL: Homepage, https://github.com/rowansci/stjames
@@ -2,6 +2,7 @@ LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
4
  stjames/__init__.py
5
+ stjames/_deprecated_solvent_settings.py
5
6
  stjames/base.py
6
7
  stjames/basis_set.py
7
8
  stjames/calculation.py
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes