stjames 0.0.36__tar.gz → 0.0.37__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 (41) hide show
  1. {stjames-0.0.36/stjames.egg-info → stjames-0.0.37}/PKG-INFO +1 -1
  2. {stjames-0.0.36 → stjames-0.0.37}/pyproject.toml +1 -1
  3. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/conformer.py +19 -6
  4. {stjames-0.0.36 → stjames-0.0.37/stjames.egg-info}/PKG-INFO +1 -1
  5. {stjames-0.0.36 → stjames-0.0.37}/LICENSE +0 -0
  6. {stjames-0.0.36 → stjames-0.0.37}/README.md +0 -0
  7. {stjames-0.0.36 → stjames-0.0.37}/setup.cfg +0 -0
  8. {stjames-0.0.36 → stjames-0.0.37}/stjames/__init__.py +0 -0
  9. {stjames-0.0.36 → stjames-0.0.37}/stjames/_deprecated_solvent_settings.py +0 -0
  10. {stjames-0.0.36 → stjames-0.0.37}/stjames/base.py +0 -0
  11. {stjames-0.0.36 → stjames-0.0.37}/stjames/basis_set.py +0 -0
  12. {stjames-0.0.36 → stjames-0.0.37}/stjames/calculation.py +0 -0
  13. {stjames-0.0.36 → stjames-0.0.37}/stjames/constraint.py +0 -0
  14. {stjames-0.0.36 → stjames-0.0.37}/stjames/correction.py +0 -0
  15. {stjames-0.0.36 → stjames-0.0.37}/stjames/diis_settings.py +0 -0
  16. {stjames-0.0.36 → stjames-0.0.37}/stjames/grid_settings.py +0 -0
  17. {stjames-0.0.36 → stjames-0.0.37}/stjames/int_settings.py +0 -0
  18. {stjames-0.0.36 → stjames-0.0.37}/stjames/message.py +0 -0
  19. {stjames-0.0.36 → stjames-0.0.37}/stjames/method.py +0 -0
  20. {stjames-0.0.36 → stjames-0.0.37}/stjames/mode.py +0 -0
  21. {stjames-0.0.36 → stjames-0.0.37}/stjames/molecule.py +0 -0
  22. {stjames-0.0.36 → stjames-0.0.37}/stjames/opt_settings.py +0 -0
  23. {stjames-0.0.36 → stjames-0.0.37}/stjames/py.typed +0 -0
  24. {stjames-0.0.36 → stjames-0.0.37}/stjames/scf_settings.py +0 -0
  25. {stjames-0.0.36 → stjames-0.0.37}/stjames/settings.py +0 -0
  26. {stjames-0.0.36 → stjames-0.0.37}/stjames/solvent.py +0 -0
  27. {stjames-0.0.36 → stjames-0.0.37}/stjames/status.py +0 -0
  28. {stjames-0.0.36 → stjames-0.0.37}/stjames/task.py +0 -0
  29. {stjames-0.0.36 → stjames-0.0.37}/stjames/thermochem_settings.py +0 -0
  30. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/__init__.py +0 -0
  31. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/descriptors.py +0 -0
  32. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/fukui.py +0 -0
  33. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/pka.py +0 -0
  34. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/redox_potential.py +0 -0
  35. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/scan.py +0 -0
  36. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/tautomer.py +0 -0
  37. {stjames-0.0.36 → stjames-0.0.37}/stjames/workflows/workflow.py +0 -0
  38. {stjames-0.0.36 → stjames-0.0.37}/stjames.egg-info/SOURCES.txt +0 -0
  39. {stjames-0.0.36 → stjames-0.0.37}/stjames.egg-info/dependency_links.txt +0 -0
  40. {stjames-0.0.36 → stjames-0.0.37}/stjames.egg-info/requires.txt +0 -0
  41. {stjames-0.0.36 → stjames-0.0.37}/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.36
3
+ Version: 0.0.37
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.36"
3
+ version = "0.0.37"
4
4
  description = "standardized JSON atom/molecule encoding scheme"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -45,12 +45,18 @@ class ConformerWorkflow(Workflow):
45
45
  conformers: list[Conformer] = []
46
46
 
47
47
  def model_post_init(self, __context: Any) -> None:
48
- self.settings = csearch_settings_by_mode(self.mode)
48
+ self.settings = csearch_settings_by_mode(self.mode, self.settings)
49
49
 
50
50
 
51
- def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
51
+ def csearch_settings_by_mode(mode: Mode, old_settings: Optional[ConformerSettings]) -> ConformerSettings:
52
+ if mode == Mode.MANUAL:
53
+ assert old_settings is not None
54
+ return old_settings
55
+
56
+ settings: ConformerSettings
57
+
52
58
  if mode == Mode.METICULOUS:
53
- return CrestConformerSettings(
59
+ settings = CrestConformerSettings(
54
60
  gfn=2,
55
61
  flags="--ewin 15 --noreftopo",
56
62
  max_energy=10,
@@ -59,7 +65,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
59
65
  )
60
66
 
61
67
  elif mode == Mode.CAREFUL:
62
- return CrestConformerSettings(
68
+ settings = CrestConformerSettings(
63
69
  gfn="ff",
64
70
  flags="--quick --ewin 10 --noreftopo",
65
71
  num_confs_considered=150,
@@ -67,7 +73,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
67
73
  )
68
74
 
69
75
  elif mode == Mode.RAPID or Mode.AUTO:
70
- return RdkitConformerSettings(
76
+ settings = RdkitConformerSettings(
71
77
  num_initial_confs=300,
72
78
  max_mmff_energy=15,
73
79
  num_confs_considered=100,
@@ -75,7 +81,7 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
75
81
  )
76
82
 
77
83
  elif mode == Mode.RECKLESS:
78
- return RdkitConformerSettings(
84
+ settings = RdkitConformerSettings(
79
85
  num_initial_confs=200,
80
86
  max_mmff_energy=10,
81
87
  num_confs_considered=50,
@@ -85,3 +91,10 @@ def csearch_settings_by_mode(mode: Mode) -> ConformerSettings:
85
91
 
86
92
  else:
87
93
  raise ValueError(f"invalid mode ``{mode.value}`` for conformer settings")
94
+
95
+ if old_settings is not None:
96
+ settings.final_method = old_settings.final_method
97
+ settings.solvent = old_settings.solvent
98
+ settings.constraints = old_settings.constraints
99
+
100
+ return settings
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.36
3
+ Version: 0.0.37
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
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