stjames 0.0.35__tar.gz → 0.0.36__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.
- {stjames-0.0.35/stjames.egg-info → stjames-0.0.36}/PKG-INFO +1 -1
- {stjames-0.0.35 → stjames-0.0.36}/pyproject.toml +4 -1
- {stjames-0.0.35 → stjames-0.0.36}/stjames/__init__.py +3 -1
- {stjames-0.0.35 → stjames-0.0.36}/stjames/calculation.py +2 -0
- stjames-0.0.36/stjames/constraint.py +16 -0
- stjames-0.0.36/stjames/message.py +13 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/opt_settings.py +2 -16
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/__init__.py +4 -5
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/conformer.py +5 -2
- stjames-0.0.36/stjames/workflows/descriptors.py +10 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/workflow.py +2 -0
- {stjames-0.0.35 → stjames-0.0.36/stjames.egg-info}/PKG-INFO +1 -1
- {stjames-0.0.35 → stjames-0.0.36}/stjames.egg-info/SOURCES.txt +3 -0
- {stjames-0.0.35 → stjames-0.0.36}/LICENSE +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/README.md +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/setup.cfg +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/_deprecated_solvent_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/base.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/basis_set.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/correction.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/diis_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/grid_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/int_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/method.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/mode.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/molecule.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/py.typed +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/scf_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/solvent.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/status.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/task.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/thermochem_settings.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/fukui.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/pka.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/redox_potential.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/scan.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames/workflows/tautomer.py +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames.egg-info/dependency_links.txt +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames.egg-info/requires.txt +0 -0
- {stjames-0.0.35 → stjames-0.0.36}/stjames.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "stjames"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.36"
|
|
4
4
|
description = "standardized JSON atom/molecule encoding scheme"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.8"
|
|
@@ -40,5 +40,8 @@ select = [
|
|
|
40
40
|
]
|
|
41
41
|
ignore = ["E741"]
|
|
42
42
|
|
|
43
|
+
[tool.ruff.lint.per-file-ignores]
|
|
44
|
+
"__init__.py" = ["F401", "F403"]
|
|
45
|
+
|
|
43
46
|
[tool.mypy]
|
|
44
47
|
plugins = ["pydantic.mypy"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ruff: noqa
|
|
1
|
+
# ruff: noqa: I001
|
|
2
2
|
|
|
3
3
|
from .calculation import *
|
|
4
4
|
from .molecule import *
|
|
@@ -19,3 +19,5 @@ from .correction import *
|
|
|
19
19
|
from .solvent import *
|
|
20
20
|
from .mode import *
|
|
21
21
|
from .status import *
|
|
22
|
+
from .constraint import *
|
|
23
|
+
from .message import *
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
3
|
from .base import Base, LowercaseStrEnum
|
|
4
|
+
from .message import Message
|
|
4
5
|
from .molecule import Molecule
|
|
5
6
|
from .settings import Settings
|
|
6
7
|
from .status import Status
|
|
@@ -25,6 +26,7 @@ class Calculation(Base):
|
|
|
25
26
|
name: Optional[str] = None
|
|
26
27
|
elapsed: Optional[float] = None
|
|
27
28
|
logfile: Optional[str] = None
|
|
29
|
+
messages: list[Message] = []
|
|
28
30
|
|
|
29
31
|
engine: Optional[str] = "peregrine"
|
|
30
32
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from .base import Base, LowercaseStrEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ConstraintType(LowercaseStrEnum):
|
|
5
|
+
"""Different sorts of constraints."""
|
|
6
|
+
|
|
7
|
+
BOND = "bond"
|
|
8
|
+
ANGLE = "angle"
|
|
9
|
+
DIHEDRAL = "dihedral"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Constraint(Base):
|
|
13
|
+
"""Represents a single constraint."""
|
|
14
|
+
|
|
15
|
+
constraint_type: ConstraintType
|
|
16
|
+
atoms: list[int] # 1-indexed
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
from pydantic import Field, PositiveFloat, PositiveInt
|
|
2
2
|
|
|
3
|
-
from .base import Base
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class ConstraintType(LowercaseStrEnum):
|
|
7
|
-
"""Different sorts of constraints."""
|
|
8
|
-
|
|
9
|
-
BOND = "bond"
|
|
10
|
-
ANGLE = "angle"
|
|
11
|
-
DIHEDRAL = "dihedral"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class Constraint(Base):
|
|
15
|
-
"""Represents a single constraint."""
|
|
16
|
-
|
|
17
|
-
constraint_type: ConstraintType
|
|
18
|
-
atoms: list[int] # 1-indexed
|
|
3
|
+
from .base import Base
|
|
4
|
+
from .constraint import Constraint
|
|
19
5
|
|
|
20
6
|
|
|
21
7
|
class OptimizationSettings(Base):
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# ruff: noqa
|
|
2
|
-
|
|
3
|
-
from .pka import *
|
|
4
1
|
from .conformer import *
|
|
5
|
-
from .
|
|
2
|
+
from .descriptors import *
|
|
3
|
+
from .fukui import *
|
|
4
|
+
from .pka import *
|
|
6
5
|
from .redox_potential import *
|
|
7
6
|
from .scan import *
|
|
8
|
-
from .
|
|
7
|
+
from .tautomer import *
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Any, Optional
|
|
2
2
|
|
|
3
3
|
from ..base import Base
|
|
4
|
+
from ..constraint import Constraint
|
|
4
5
|
from ..method import Method
|
|
5
6
|
from ..mode import Mode
|
|
6
7
|
from ..solvent import Solvent
|
|
@@ -16,6 +17,8 @@ class ConformerSettings(Base):
|
|
|
16
17
|
solvent: Optional[Solvent] = Solvent.WATER
|
|
17
18
|
max_energy: float = 5
|
|
18
19
|
|
|
20
|
+
constraints: list[Constraint] = []
|
|
21
|
+
|
|
19
22
|
|
|
20
23
|
class RdkitConformerSettings(ConformerSettings):
|
|
21
24
|
num_initial_confs: int = 100
|
|
@@ -49,7 +52,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
|
|
|
49
52
|
if mode == Mode.METICULOUS:
|
|
50
53
|
return CrestConformerSettings(
|
|
51
54
|
gfn=2,
|
|
52
|
-
flags="--ewin 15",
|
|
55
|
+
flags="--ewin 15 --noreftopo",
|
|
53
56
|
max_energy=10,
|
|
54
57
|
num_confs_considered=500,
|
|
55
58
|
num_confs_taken=150,
|
|
@@ -58,7 +61,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
|
|
|
58
61
|
elif mode == Mode.CAREFUL:
|
|
59
62
|
return CrestConformerSettings(
|
|
60
63
|
gfn="ff",
|
|
61
|
-
flags="--quick --ewin 10",
|
|
64
|
+
flags="--quick --ewin 10 --noreftopo",
|
|
62
65
|
num_confs_considered=150,
|
|
63
66
|
num_confs_taken=50,
|
|
64
67
|
)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from ..base import Base
|
|
2
|
+
from ..message import Message
|
|
2
3
|
from ..molecule import Molecule
|
|
3
4
|
|
|
4
5
|
|
|
@@ -6,6 +7,7 @@ class Workflow(Base):
|
|
|
6
7
|
"""All workflows should have these properties."""
|
|
7
8
|
|
|
8
9
|
initial_molecule: Molecule
|
|
10
|
+
messages: list[Message] = []
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
class DBCalculation(Base):
|
|
@@ -6,10 +6,12 @@ stjames/_deprecated_solvent_settings.py
|
|
|
6
6
|
stjames/base.py
|
|
7
7
|
stjames/basis_set.py
|
|
8
8
|
stjames/calculation.py
|
|
9
|
+
stjames/constraint.py
|
|
9
10
|
stjames/correction.py
|
|
10
11
|
stjames/diis_settings.py
|
|
11
12
|
stjames/grid_settings.py
|
|
12
13
|
stjames/int_settings.py
|
|
14
|
+
stjames/message.py
|
|
13
15
|
stjames/method.py
|
|
14
16
|
stjames/mode.py
|
|
15
17
|
stjames/molecule.py
|
|
@@ -28,6 +30,7 @@ stjames.egg-info/requires.txt
|
|
|
28
30
|
stjames.egg-info/top_level.txt
|
|
29
31
|
stjames/workflows/__init__.py
|
|
30
32
|
stjames/workflows/conformer.py
|
|
33
|
+
stjames/workflows/descriptors.py
|
|
31
34
|
stjames/workflows/fukui.py
|
|
32
35
|
stjames/workflows/pka.py
|
|
33
36
|
stjames/workflows/redox_potential.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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|