stjames 0.0.26__py3-none-any.whl → 0.0.28__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/basis_set.py CHANGED
@@ -1,5 +1,9 @@
1
1
  import pydantic
2
- from typing import Optional, Self
2
+
3
+ try:
4
+ from typing import Optional, Self
5
+ except ImportError:
6
+ from typing_extensions import Optional, Self
3
7
 
4
8
  from .base import Base
5
9
 
stjames/molecule.py CHANGED
@@ -1,5 +1,9 @@
1
1
  import pydantic
2
- from typing import Optional, Self
2
+
3
+ try:
4
+ from typing import Optional, Self
5
+ except ImportError:
6
+ from typing_extensions import Optional, Self
3
7
 
4
8
  from .base import Base
5
9
 
@@ -50,28 +54,28 @@ class Molecule(Base):
50
54
  return [a.atomic_number for a in self.atoms]
51
55
 
52
56
  @property
53
- def sum_energy_zpe(self) -> float | None:
57
+ def sum_energy_zpe(self) -> Optional[float]:
54
58
  if (self.energy is None) or (self.zero_point_energy is None):
55
59
  return None
56
60
  else:
57
61
  return self.energy + self.zero_point_energy
58
62
 
59
63
  @property
60
- def sum_energy_thermal_corr(self) -> float | None:
64
+ def sum_energy_thermal_corr(self) -> Optional[float]:
61
65
  if (self.energy is None) or (self.thermal_energy_corr is None):
62
66
  return None
63
67
  else:
64
68
  return self.energy + self.thermal_energy_corr
65
69
 
66
70
  @property
67
- def sum_energy_enthalpy(self) -> float | None:
71
+ def sum_energy_enthalpy(self) -> Optional[float]:
68
72
  if (self.energy is None) or (self.thermal_enthalpy_corr is None):
69
73
  return None
70
74
  else:
71
75
  return self.energy + self.thermal_enthalpy_corr
72
76
 
73
77
  @property
74
- def sum_energy_free_energy(self) -> float | None:
78
+ def sum_energy_free_energy(self) -> Optional[float]:
75
79
  if (self.energy is None) or (self.thermal_free_energy_corr is None):
76
80
  return None
77
81
  else:
stjames/settings.py CHANGED
@@ -60,7 +60,7 @@ class Settings(Base):
60
60
 
61
61
  @pydantic.field_validator("basis_set", mode="before")
62
62
  @classmethod
63
- def parse_basis_set(cls, v: Any) -> BasisSet | None:
63
+ def parse_basis_set(cls, v: Any) -> Optional[BasisSet]:
64
64
  """Turn a string into a ``BasisSet`` object. (This is a little crude.)"""
65
65
  if isinstance(v, BasisSet):
66
66
  return None if v.name is None else v
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stjames
3
- Version: 0.0.26
3
+ Version: 0.0.28
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,7 +1,7 @@
1
1
  stjames/__init__.py,sha256=yQF57YFNAXtZ7vqG89cRf1Pk4hKRCYlaTNzX4JkhHoo,471
2
2
  stjames/_deprecated_solvent_settings.py,sha256=ALUZeQoxDS11EvZexT1J2SDAlLTiXe-x4jV8tenDqMc,445
3
3
  stjames/base.py,sha256=ww8aRYBC1w1mga90QVOSdtQO8Dh3mPFn4oP0woQ_9qQ,1069
4
- stjames/basis_set.py,sha256=uax7wOv7C9640TMDOkFqTQvgZ5UxvyWx1Fp8-IGzils,935
4
+ stjames/basis_set.py,sha256=4Su3K3Y7G-4S8WHWOQE94d6hxoN6L_MkQUz3qoFqcB0,1014
5
5
  stjames/calculation.py,sha256=iZ6dua78hWM7CsvtpHXs5Tmts-BAkB-iI1Fi7yvfqVo,786
6
6
  stjames/corrections.py,sha256=_pNG3qSylfx0iyUxqwx9HPU0m032YwP6wSPCjbJrD94,358
7
7
  stjames/diis_settings.py,sha256=QHc7L-hktkbOWBYr29byTdqL8lWJzKJiY9XW8ha4Qzo,552
@@ -9,16 +9,16 @@ stjames/grid_settings.py,sha256=WrSNGc-8_f87YBZYt9Hh7RbhM4MweADoVzwBMcSqcsE,640
9
9
  stjames/int_settings.py,sha256=5HXp8opt5ZyY1UpmfaK7NVloWVLM5jkG0elEEqpVLUo,896
10
10
  stjames/methods.py,sha256=e7A3XH808JglgfCzISKyRKAxGDj7BQdcQQtgtTlgfNk,843
11
11
  stjames/modes.py,sha256=xw46Cc7f3eTS8i35qECi-8DocAlANhayK3w4akD4HBU,496
12
- stjames/molecule.py,sha256=2_cBc-00dM7I6J9_TFZTaomyUXlYHA4fP0Erb3zGVdM,2824
12
+ stjames/molecule.py,sha256=y-NidMubuA9IsSruUKavyBndbf5hYodjihna9uBjkOc,2915
13
13
  stjames/opt_settings.py,sha256=RwXikvwW6fTODK3FK8Xvyqy4DY-qMVtZHndWirBxujk,735
14
14
  stjames/scf_settings.py,sha256=e31f1mWRmcFkMnc-loQak_2037L-l4AYpnl-glchrCc,2388
15
- stjames/settings.py,sha256=0qZSiSN5R-ckhQDYD6FJf8HcVZwCQSVO5WAmcpAtR6A,8163
15
+ stjames/settings.py,sha256=KMIpPmgZ1_EUQ2PZsvyi3uiwxUaWWNk6jF6sQvlxNPY,8166
16
16
  stjames/solvent_settings.py,sha256=3ssY-vQCCa071srfJbwCYEKDpWos8Mgvmg_dTpAnbJw,1104
17
17
  stjames/status.py,sha256=wTKNcNxStoEHrxxgr_zTyN90NITa3rxMQZzOgrCifEw,332
18
18
  stjames/tasks.py,sha256=TTl-iTdvDNCZTdPsyS6bYmxzY0ez9PgYlL62fztayXQ,307
19
19
  stjames/thermochem_settings.py,sha256=ZTLz31v8Ltutde5Nfm0vH5YahWjcfFWfr_R856KffxE,517
20
- stjames-0.0.26.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
21
- stjames-0.0.26.dist-info/METADATA,sha256=BdpMl23_F5U4DNR4V2JbEowYmVKxAG7-aXUYP_0Ze18,1605
22
- stjames-0.0.26.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
23
- stjames-0.0.26.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
24
- stjames-0.0.26.dist-info/RECORD,,
20
+ stjames-0.0.28.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
21
+ stjames-0.0.28.dist-info/METADATA,sha256=DjJ6SiJV2TYYq5XTxJn0L1RHrf8cXkxf_Q_eEFbX6xU,1605
22
+ stjames-0.0.28.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
23
+ stjames-0.0.28.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
24
+ stjames-0.0.28.dist-info/RECORD,,