stjames 0.0.35__py3-none-any.whl → 0.0.36__py3-none-any.whl

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/__init__.py CHANGED
@@ -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 *
stjames/calculation.py CHANGED
@@ -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
 
stjames/constraint.py ADDED
@@ -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
stjames/message.py ADDED
@@ -0,0 +1,13 @@
1
+ from .base import Base, LowercaseStrEnum
2
+
3
+
4
+ class MessageType(LowercaseStrEnum):
5
+ ERROR = "error"
6
+ WARNING = "warning"
7
+ INFO = "info"
8
+
9
+
10
+ class Message(Base):
11
+ type: MessageType
12
+ title: str
13
+ body: str
stjames/opt_settings.py CHANGED
@@ -1,21 +1,7 @@
1
1
  from pydantic import Field, PositiveFloat, PositiveInt
2
2
 
3
- from .base import Base, LowercaseStrEnum
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 .tautomer import *
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 .fukui import *
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
  )
@@ -0,0 +1,10 @@
1
+ from .workflow import Workflow
2
+
3
+ Descriptors = dict[str, dict[str, float] | tuple[float | None, ...] | float]
4
+
5
+
6
+ class DescriptorsWorkflow(Workflow):
7
+ # uuid of optimization
8
+ optimization: str | None = None
9
+
10
+ descriptors: Descriptors | None = None
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.35
3
+ Version: 0.0.36
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,16 +1,18 @@
1
- stjames/__init__.py,sha256=_gX08PEdPHoE6oyc0OF2gKPBfk9op0am75y1TDUo-MU,451
1
+ stjames/__init__.py,sha256=RJ1b132RSXVbQfptduVM1ZSQrnSTsg0a-VfgBwQn9zo,506
2
2
  stjames/_deprecated_solvent_settings.py,sha256=gj5j9p3zakIwSTK5_ndqBXJx--IzjZNxZ75z-wipLOo,450
3
3
  stjames/base.py,sha256=GTISjYPBi4KCxAR9DPLf4mp6ZYuh2MwlNI0jZ1N41Io,1142
4
4
  stjames/basis_set.py,sha256=Fi6vJx-ni2aOozFYH2hrSlc9lL01XzPO4zO6onJliuE,1035
5
- stjames/calculation.py,sha256=6xnoKLn6tr1QaactTWsdu8Ciqdu8oa-hmB2y9RIrJTI,786
5
+ stjames/calculation.py,sha256=0eCZ59lqmnI_QxEdMp7esrTeutNyO_pIFrZQf_FncSo,848
6
+ stjames/constraint.py,sha256=gkp0y0yQPeii8jdBNllZ9JS8t0o2bkEVTFAkyhShmWk,329
6
7
  stjames/correction.py,sha256=_pNG3qSylfx0iyUxqwx9HPU0m032YwP6wSPCjbJrD94,358
7
8
  stjames/diis_settings.py,sha256=QHc7L-hktkbOWBYr29byTdqL8lWJzKJiY9XW8ha4Qzo,552
8
9
  stjames/grid_settings.py,sha256=WrSNGc-8_f87YBZYt9Hh7RbhM4MweADoVzwBMcSqcsE,640
9
10
  stjames/int_settings.py,sha256=5HXp8opt5ZyY1UpmfaK7NVloWVLM5jkG0elEEqpVLUo,896
11
+ stjames/message.py,sha256=Rq6QqmHZKecWxYH8fVyXmuoCCPZv8YinvgykSeorXSU,216
10
12
  stjames/method.py,sha256=e7A3XH808JglgfCzISKyRKAxGDj7BQdcQQtgtTlgfNk,843
11
13
  stjames/mode.py,sha256=xw46Cc7f3eTS8i35qECi-8DocAlANhayK3w4akD4HBU,496
12
14
  stjames/molecule.py,sha256=t0jOmkTMgQE2ayBn9igjpY_4gPyqLPqZLlgtwd4uBOA,2910
13
- stjames/opt_settings.py,sha256=81vYDBEbqLGN_crI1GtAxiOoRa791WN0m2HfT5_A7pE,729
15
+ stjames/opt_settings.py,sha256=5nTGih8KZ3x_yGfPL7pdGdsuOpCIfuJUrKoSK5YSDJg,458
14
16
  stjames/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
17
  stjames/scf_settings.py,sha256=xMMCQ0hVB4nNFSiWesNQZUa_aLsozSZGYWweAPPDGBg,2356
16
18
  stjames/settings.py,sha256=cUiAydIVes9iDEky4coOYQ2kF97AYaLClx5qjJmEpWY,8462
@@ -18,16 +20,17 @@ stjames/solvent.py,sha256=3ssY-vQCCa071srfJbwCYEKDpWos8Mgvmg_dTpAnbJw,1104
18
20
  stjames/status.py,sha256=wTKNcNxStoEHrxxgr_zTyN90NITa3rxMQZzOgrCifEw,332
19
21
  stjames/task.py,sha256=TTl-iTdvDNCZTdPsyS6bYmxzY0ez9PgYlL62fztayXQ,307
20
22
  stjames/thermochem_settings.py,sha256=ZTLz31v8Ltutde5Nfm0vH5YahWjcfFWfr_R856KffxE,517
21
- stjames/workflows/__init__.py,sha256=TibQzeD3X3YGq9TaAzPlBMxU7zskFoa8PwPUam4TcZY,154
22
- stjames/workflows/conformer.py,sha256=tqACquXy8wqIbxl3T-n4dfNNNkVdLos2dIG1u0CV8cc,2169
23
+ stjames/workflows/__init__.py,sha256=sy9J04mCJpyVGcG4DecCi6pncwbZVvybI7sJKzavjgo,167
24
+ stjames/workflows/conformer.py,sha256=TLux80MCgVH7RsJdElMtpWt5_hbWu7dyjg0zSim_lbA,2269
25
+ stjames/workflows/descriptors.py,sha256=Jqx_4u_ZhdFJrT-ITU6zlFY0n8llh6zhzIhM38e8NCs,255
23
26
  stjames/workflows/fukui.py,sha256=FAabgLi_ig6Zp_jiTkuveP0wAObwv68liuumr85rb0g,366
24
27
  stjames/workflows/pka.py,sha256=zpR90Yv2L-D56o2mGArM8027DWpnFFnay31UR9Xh5Nc,774
25
28
  stjames/workflows/redox_potential.py,sha256=iPkFt1Dj1sUywS9pLSEBVpCjHZcEwUESluY0ggLii8A,1213
26
29
  stjames/workflows/scan.py,sha256=d1ca1uk1nxdzlSwqMLZ0W1_DHyrQMnHJmvPfziCS0SA,773
27
30
  stjames/workflows/tautomer.py,sha256=kZSCHo2Q7LzqtQjF_WyyxjECkndG49T9QOM12hsUkx8,421
28
- stjames/workflows/workflow.py,sha256=jzkHO8mdmoy9zW3iD457KAXYrCCkV2OHjg6T3896nCQ,304
29
- stjames-0.0.35.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
30
- stjames-0.0.35.dist-info/METADATA,sha256=Hk0XDUPqTndq0PHE98rDpNPXWPdbunZa_nVGwAIK_84,1626
31
- stjames-0.0.35.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
32
- stjames-0.0.35.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
33
- stjames-0.0.35.dist-info/RECORD,,
31
+ stjames/workflows/workflow.py,sha256=6hFe5PZejJu6bZ3yTkoJ9-xQMBn_-8tUsbk4FUZxog0,367
32
+ stjames-0.0.36.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
33
+ stjames-0.0.36.dist-info/METADATA,sha256=qj3omHcwp2JrTGjc2UMR9NdGBjho6ItqsxoRvLgiR-U,1626
34
+ stjames-0.0.36.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
35
+ stjames-0.0.36.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
36
+ stjames-0.0.36.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5