stjames 0.0.30__tar.gz → 0.0.32__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 (38) hide show
  1. {stjames-0.0.30/stjames.egg-info → stjames-0.0.32}/PKG-INFO +1 -1
  2. {stjames-0.0.30 → stjames-0.0.32}/pyproject.toml +1 -1
  3. {stjames-0.0.30 → stjames-0.0.32}/stjames/__init__.py +0 -1
  4. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/conformer.py +2 -8
  5. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/pka.py +3 -0
  6. stjames-0.0.32/stjames/workflows/redox_potential.py +31 -0
  7. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/scan.py +1 -1
  8. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/tautomer.py +2 -1
  9. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/workflow.py +0 -2
  10. {stjames-0.0.30 → stjames-0.0.32/stjames.egg-info}/PKG-INFO +1 -1
  11. stjames-0.0.30/stjames/workflows/redox_potential.py +0 -18
  12. {stjames-0.0.30 → stjames-0.0.32}/LICENSE +0 -0
  13. {stjames-0.0.30 → stjames-0.0.32}/README.md +0 -0
  14. {stjames-0.0.30 → stjames-0.0.32}/setup.cfg +0 -0
  15. {stjames-0.0.30 → stjames-0.0.32}/stjames/_deprecated_solvent_settings.py +0 -0
  16. {stjames-0.0.30 → stjames-0.0.32}/stjames/base.py +0 -0
  17. {stjames-0.0.30 → stjames-0.0.32}/stjames/basis_set.py +0 -0
  18. {stjames-0.0.30 → stjames-0.0.32}/stjames/calculation.py +0 -0
  19. {stjames-0.0.30 → stjames-0.0.32}/stjames/correction.py +0 -0
  20. {stjames-0.0.30 → stjames-0.0.32}/stjames/diis_settings.py +0 -0
  21. {stjames-0.0.30 → stjames-0.0.32}/stjames/grid_settings.py +0 -0
  22. {stjames-0.0.30 → stjames-0.0.32}/stjames/int_settings.py +0 -0
  23. {stjames-0.0.30 → stjames-0.0.32}/stjames/method.py +0 -0
  24. {stjames-0.0.30 → stjames-0.0.32}/stjames/mode.py +0 -0
  25. {stjames-0.0.30 → stjames-0.0.32}/stjames/molecule.py +0 -0
  26. {stjames-0.0.30 → stjames-0.0.32}/stjames/opt_settings.py +0 -0
  27. {stjames-0.0.30 → stjames-0.0.32}/stjames/scf_settings.py +0 -0
  28. {stjames-0.0.30 → stjames-0.0.32}/stjames/settings.py +0 -0
  29. {stjames-0.0.30 → stjames-0.0.32}/stjames/solvent.py +0 -0
  30. {stjames-0.0.30 → stjames-0.0.32}/stjames/status.py +0 -0
  31. {stjames-0.0.30 → stjames-0.0.32}/stjames/task.py +0 -0
  32. {stjames-0.0.30 → stjames-0.0.32}/stjames/thermochem_settings.py +0 -0
  33. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/__init__.py +0 -0
  34. {stjames-0.0.30 → stjames-0.0.32}/stjames/workflows/fukui.py +0 -0
  35. {stjames-0.0.30 → stjames-0.0.32}/stjames.egg-info/SOURCES.txt +0 -0
  36. {stjames-0.0.30 → stjames-0.0.32}/stjames.egg-info/dependency_links.txt +0 -0
  37. {stjames-0.0.30 → stjames-0.0.32}/stjames.egg-info/requires.txt +0 -0
  38. {stjames-0.0.30 → stjames-0.0.32}/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.30
3
+ Version: 0.0.32
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.30"
3
+ version = "0.0.32"
4
4
  description = "standardized JSON atom/molecule encoding scheme"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -8,7 +8,6 @@ from .scf_settings import *
8
8
  from .int_settings import *
9
9
  from .opt_settings import *
10
10
  from .diis_settings import *
11
- from .solvent_settings import *
12
11
  from .thermochem_settings import *
13
12
  from .grid_settings import *
14
13
  from .settings import *
@@ -18,19 +18,12 @@ class ConformerSettings(Base):
18
18
 
19
19
 
20
20
  class RdkitConformerSettings(ConformerSettings):
21
- csearch_program: str = "rdkit"
22
-
23
21
  num_initial_confs: int = 100
24
22
  max_mmff_energy: float = 10
25
23
  max_mmff_iterations: int = 500
26
- num_confs_considered: float = 10
27
- num_confs_taken: float = 3
28
- rmsd_cutoff: float = 0.1
29
24
 
30
25
 
31
26
  class CrestConformerSettings(ConformerSettings):
32
- csearch_program: str = "crest"
33
-
34
27
  flags: str = "--quick --ewin 10"
35
28
  gfn: int | str = "ff"
36
29
 
@@ -44,6 +37,7 @@ class Conformer(Base):
44
37
 
45
38
 
46
39
  class ConformerWorkflow(Workflow):
40
+ mode: Mode = Mode.RAPID
47
41
  settings: ConformerSettings = ConformerSettings()
48
42
  conformers: list[Conformer] = []
49
43
 
@@ -69,7 +63,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
69
63
  num_confs_taken=50,
70
64
  )
71
65
 
72
- elif mode == Mode.RAPID:
66
+ elif mode == Mode.RAPID or Mode.AUTO:
73
67
  return RdkitConformerSettings(
74
68
  num_initial_confs=300,
75
69
  max_mmff_energy=15,
@@ -1,5 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
+ from ..mode import Mode
3
4
  from ..base import Base
4
5
  from .workflow import DBCalculation, Workflow
5
6
 
@@ -12,6 +13,8 @@ class pKaMicrostate(Base):
12
13
 
13
14
 
14
15
  class pKaWorkflow(Workflow):
16
+ mode: Mode = Mode.CAREFUL
17
+
15
18
  pka_range: tuple[float, float] = (2, 12)
16
19
  deprotonate_elements: list[int] = [7, 8, 16]
17
20
  deprotonate_atoms: list[int] = []
@@ -0,0 +1,31 @@
1
+ from typing import Optional, Any
2
+
3
+ from ..mode import Mode
4
+ from ..solvent import Solvent
5
+ from .workflow import Workflow
6
+
7
+
8
+ class RedoxPotentialWorkflow(Workflow):
9
+ mode: Mode = Mode.RAPID
10
+ solvent: Solvent = Solvent.ACETONITRILE
11
+ reduction: bool = True
12
+ oxidation: bool = True
13
+
14
+ redox_type: Optional[str] = None
15
+
16
+ # uuids
17
+ neutral_molecule: Optional[str] = None
18
+ anion_molecule: Optional[str] = None
19
+ cation_molecule: Optional[str] = None
20
+
21
+ reduction_potential: Optional[float] = None
22
+ oxidation_potential: Optional[float] = None
23
+
24
+ def model_post_init(self, __context: Any) -> None:
25
+ """ Keep back-compatible with old schema. """
26
+ if self.redox_type == "oxidation":
27
+ self.oxidation = True
28
+ self.reduction = False
29
+ elif self.redox_type == "reduction":
30
+ self.oxidation = False
31
+ self.reduction = True
@@ -32,7 +32,7 @@ class ScanSettings(Base):
32
32
  class ScanWorkflow(Workflow):
33
33
  scan_settings: ScanSettings
34
34
  calc_settings: Settings
35
- engine: str
35
+ calc_engine: str
36
36
 
37
37
  # uuids of scan points
38
38
  scan_points: list[str] = []
@@ -1,6 +1,7 @@
1
1
  from typing import Optional
2
2
 
3
3
  from ..base import Base
4
+ from ..mode import Mode
4
5
  from .conformer import ConformerSettings
5
6
  from .workflow import DBCalculation, Workflow
6
7
 
@@ -15,5 +16,5 @@ class Tautomer(Base):
15
16
 
16
17
 
17
18
  class TautomerWorkflow(Workflow):
18
- settings: ConformerSettings
19
+ mode: Mode = Mode.CAREFUL
19
20
  tautomers: list[Tautomer] = []
@@ -1,5 +1,4 @@
1
1
  from ..base import Base
2
- from ..mode import Mode
3
2
  from ..molecule import Molecule
4
3
 
5
4
 
@@ -7,7 +6,6 @@ class Workflow(Base):
7
6
  """All workflows should have these properties."""
8
7
 
9
8
  initial_molecule: Molecule
10
- mode: Mode
11
9
 
12
10
 
13
11
  class DBCalculation(Base):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.30
3
+ Version: 0.0.32
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,18 +0,0 @@
1
- from typing import Optional
2
-
3
- from ..solvent import Solvent
4
- from .workflow import Workflow
5
-
6
-
7
- class RedoxPotentialWorkflow(Workflow):
8
- solvent: Solvent = Solvent.ACETONITRILE
9
- reduction: bool = True
10
- oxidation: bool = True
11
-
12
- # uuids
13
- neutral_molecule: Optional[str] = None
14
- anion_molecule: Optional[str] = None
15
- cation_molecule: Optional[str] = None
16
-
17
- reduction_potential: Optional[float] = None
18
- oxidation_potential: Optional[float] = None
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
File without changes
File without changes
File without changes
File without changes