stjames 0.0.1__py3-none-any.whl → 0.0.2__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/methods.py +0 -1
- stjames/opt_settings.py +1 -3
- stjames/settings.py +3 -8
- {stjames-0.0.1.dist-info → stjames-0.0.2.dist-info}/METADATA +1 -1
- {stjames-0.0.1.dist-info → stjames-0.0.2.dist-info}/RECORD +8 -8
- {stjames-0.0.1.dist-info → stjames-0.0.2.dist-info}/WHEEL +1 -1
- {stjames-0.0.1.dist-info → stjames-0.0.2.dist-info}/LICENSE +0 -0
- {stjames-0.0.1.dist-info → stjames-0.0.2.dist-info}/top_level.txt +0 -0
stjames/methods.py
CHANGED
stjames/opt_settings.py
CHANGED
|
@@ -51,7 +51,5 @@ class OptimizationSettings(Base):
|
|
|
51
51
|
def check_rms_max_grad(self) -> Self:
|
|
52
52
|
rms_grad = self.rms_gradient_threshold
|
|
53
53
|
max_grad = self.max_gradient_threshold
|
|
54
|
-
assert (
|
|
55
|
-
abs(max_grad / rms_grad - 1.50) < 1e-3
|
|
56
|
-
), "DLFIND hard-codes this relationship between RMS and max gradient!"
|
|
54
|
+
assert abs(max_grad / rms_grad - 1.50) < 1e-3, "DLFIND hard-codes this relationship between RMS and max gradient!"
|
|
57
55
|
return self
|
stjames/settings.py
CHANGED
|
@@ -37,8 +37,8 @@ class Settings(Base):
|
|
|
37
37
|
@pydantic.field_validator("basis_set", mode="before")
|
|
38
38
|
@classmethod
|
|
39
39
|
def inflate_basis_set(cls, v: Any) -> BasisSet:
|
|
40
|
-
"""Turn a string into a ``
|
|
41
|
-
if isinstance(v, BasisSet):
|
|
40
|
+
"""Turn a string into a ``BasisSet`` object. (This is a little crude.)"""
|
|
41
|
+
if isinstance(v, (BasisSet, dict)):
|
|
42
42
|
return v
|
|
43
43
|
elif isinstance(v, str):
|
|
44
44
|
return BasisSet(name=v)
|
|
@@ -53,12 +53,7 @@ def _assign_settings_by_mode(settings: Settings) -> None:
|
|
|
53
53
|
mode = settings.mode
|
|
54
54
|
|
|
55
55
|
if mode == Mode.AUTO:
|
|
56
|
-
if (
|
|
57
|
-
(Task.OPTIMIZE in settings.tasks)
|
|
58
|
-
or (Task.GRADIENT in settings.tasks)
|
|
59
|
-
or (Task.FREQUENCIES) in settings.tasks
|
|
60
|
-
or (Task.HESSIAN) in settings.tasks
|
|
61
|
-
):
|
|
56
|
+
if (Task.OPTIMIZE in settings.tasks) or (Task.GRADIENT in settings.tasks) or (Task.FREQUENCIES) in settings.tasks or (Task.HESSIAN) in settings.tasks:
|
|
62
57
|
mode = Mode.CAREFUL
|
|
63
58
|
else:
|
|
64
59
|
mode = Mode.RAPID
|
|
@@ -5,17 +5,17 @@ stjames/calculation.py,sha256=3B5Hp7v5EooxBwabUNx3bmq_e6-zx8d6oU7tcs6cYes,745
|
|
|
5
5
|
stjames/corrections.py,sha256=vVO0CEBxWveCsWGd2Fa9D9eFeteFYB_bpa56T2f8S-Y,268
|
|
6
6
|
stjames/grid_settings.py,sha256=emD4ba3vjB8MItZVtDt8_evHlCGPYMjAZEQabpdxNcw,532
|
|
7
7
|
stjames/int_settings.py,sha256=OIoD7ycpg9oEhaPIQNSYCNFuiJ1ihmiyF645CaOsRXc,633
|
|
8
|
-
stjames/methods.py,sha256=
|
|
8
|
+
stjames/methods.py,sha256=7cs5aaz1khuY1E9ozCYQvwkWdjhAMhfBIXc0pd6rU9w,369
|
|
9
9
|
stjames/modes.py,sha256=0blPpoXShCBl7wfsKk0HxO5EoCgjgPiiBFN0OJ972QE,422
|
|
10
10
|
stjames/molecule.py,sha256=AtCQEn_fVbM_tAY7UowQ9QbHIe_ZfE5zPhFLdvsQ5_o,2280
|
|
11
|
-
stjames/opt_settings.py,sha256=
|
|
11
|
+
stjames/opt_settings.py,sha256=pxZmfdSItf4HGBn0MOsqfyCEbzj7wMRESQCso7qUhWs,1453
|
|
12
12
|
stjames/scf_settings.py,sha256=QRcwCLxT5ahzGcWJ9U5ZLkgI7YoB3TfDR7uzdChdy78,1609
|
|
13
|
-
stjames/settings.py,sha256=
|
|
13
|
+
stjames/settings.py,sha256=CyKfPRYY4ped9jzsIq65M-gbDkv3NvjLsbhywfOSblQ,7296
|
|
14
14
|
stjames/status.py,sha256=wTKNcNxStoEHrxxgr_zTyN90NITa3rxMQZzOgrCifEw,332
|
|
15
15
|
stjames/tasks.py,sha256=6fGe6E-1Bwon3Re2c_xgB7Fq8LTL2YpHYSzcan2WrzY,275
|
|
16
16
|
stjames/thermochem_settings.py,sha256=ZTLz31v8Ltutde5Nfm0vH5YahWjcfFWfr_R856KffxE,517
|
|
17
|
-
stjames-0.0.
|
|
18
|
-
stjames-0.0.
|
|
19
|
-
stjames-0.0.
|
|
20
|
-
stjames-0.0.
|
|
21
|
-
stjames-0.0.
|
|
17
|
+
stjames-0.0.2.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
|
|
18
|
+
stjames-0.0.2.dist-info/METADATA,sha256=V8BHdHIYBbS4aLnu8kuLs-bCC1nKW3OboBQd1rICUsE,1127
|
|
19
|
+
stjames-0.0.2.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
|
20
|
+
stjames-0.0.2.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
|
|
21
|
+
stjames-0.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|