diffusivity-step 2026.3.15__tar.gz → 2026.3.26__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.
Files changed (51) hide show
  1. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/HISTORY.rst +5 -0
  2. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/PKG-INFO +6 -1
  3. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/_version.py +3 -3
  4. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/diffusivity.py +10 -3
  5. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/PKG-INFO +6 -1
  6. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/AUTHORS.rst +0 -0
  7. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/CONTRIBUTING.rst +0 -0
  8. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/LICENSE +0 -0
  9. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/MANIFEST.in +0 -0
  10. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/README.rst +0 -0
  11. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/__init__.py +0 -0
  12. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/analysis.py +0 -0
  13. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/data/properties.csv +0 -0
  14. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/data/references.bib +0 -0
  15. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/diffusivity_parameters.py +0 -0
  16. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/diffusivity_step.py +0 -0
  17. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/metadata.py +0 -0
  18. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step/tk_diffusivity.py +0 -0
  19. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/SOURCES.txt +0 -0
  20. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/dependency_links.txt +0 -0
  21. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/entry_points.txt +0 -0
  22. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/requires.txt +0 -0
  23. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/top_level.txt +0 -0
  24. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/diffusivity_step.egg-info/zip-safe +0 -0
  25. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/Makefile +0 -0
  26. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/SEAMM Inverted 288x181.png +0 -0
  27. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/SEAMM logo.png +0 -0
  28. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/molssi_main_logo.png +0 -0
  29. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/molssi_main_logo_inverted_white.png +0 -0
  30. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/molssi_square.png +0 -0
  31. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/_static/nsf.png +0 -0
  32. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/api/index.rst +0 -0
  33. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/authors.rst +0 -0
  34. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/conf.py +0 -0
  35. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/developer_guide/contributing.rst +0 -0
  36. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/developer_guide/index.rst +0 -0
  37. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/developer_guide/installation.rst +0 -0
  38. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/developer_guide/usage.rst +0 -0
  39. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/getting_started/index.rst +0 -0
  40. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/history.rst +0 -0
  41. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/index.rst +0 -0
  42. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/make.bat +0 -0
  43. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/docs/user_guide/index.rst +0 -0
  44. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/requirements.txt +0 -0
  45. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/requirements_dev.txt +0 -0
  46. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/requirements_install.txt +0 -0
  47. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/setup.cfg +0 -0
  48. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/setup.py +0 -0
  49. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/tests/__init__.py +0 -0
  50. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/tests/test_diffusivity_step.py +0 -0
  51. {diffusivity_step-2026.3.15 → diffusivity_step-2026.3.26}/versioneer.py +0 -0
@@ -1,6 +1,11 @@
1
1
  =======
2
2
  History
3
3
  =======
4
+ 2026.3.26 -- Bugfix: Corrected handling of viscosity <= 0.0
5
+ * Ignore the hydrostatic correction if the given viscosity is less than or equal
6
+ to 0. This allows a flowchart to work more simply whether the viscosity os know or
7
+ not.
8
+
4
9
  2026.3.15 -- Fixed an error with MLFFs and protected the viscosity correction.
5
10
  * Fixed and error with the name of the MLFF, which caused the code to crash after
6
11
  printing the results but before ending.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffusivity_step
3
- Version: 2026.3.15
3
+ Version: 2026.3.26
4
4
  Summary: A SEAMM plug-in for Diffusivity
5
5
  Home-page: https://github.com/molssi-seamm/diffusivity_step
6
6
  Author: Paul Saxe
@@ -103,6 +103,11 @@ award CHE-2136142.
103
103
  =======
104
104
  History
105
105
  =======
106
+ 2026.3.26 -- Bugfix: Corrected handling of viscosity <= 0.0
107
+ * Ignore the hydrostatic correction if the given viscosity is less than or equal
108
+ to 0. This allows a flowchart to work more simply whether the viscosity os know or
109
+ not.
110
+
106
111
  2026.3.15 -- Fixed an error with MLFFs and protected the viscosity correction.
107
112
  * Fixed and error with the name of the MLFF, which caused the code to crash after
108
113
  printing the results but before ending.
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2026-03-15T18:24:44-0400",
11
+ "date": "2026-03-26T16:34:55-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "a833d1775d0dde75683d81f4dd5734b094a0ab2a",
15
- "version": "2026.3.15"
14
+ "full-revisionid": "c1323930ff2d5200be364ea83294d42f3d571175",
15
+ "version": "2026.3.26"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -1027,7 +1027,7 @@ class Diffusivity(seamm.Node):
1027
1027
 
1028
1028
  # If requested, calculate the Yeh-Hummer correction for cell size
1029
1029
  correction = None
1030
- if P["hydrodynamic correction"]:
1030
+ if P["hydrodynamic correction"] and P["viscosity"] > 0:
1031
1031
  if "T" in self._state_vars:
1032
1032
  T = self._state["T"][-1]
1033
1033
  if "a" in self._state_vars:
@@ -1164,12 +1164,19 @@ class Diffusivity(seamm.Node):
1164
1164
  )
1165
1165
 
1166
1166
  correction = P["hydrodynamic correction"]
1167
+ viscosity = P["viscosity"]
1168
+ if not self.is_expr(viscosity):
1169
+ try:
1170
+ if viscosity.magnitude <= 0:
1171
+ correction = "no"
1172
+ except Exception:
1173
+ pass
1167
1174
 
1168
1175
  if isinstance(correction, str) and self.is_expr(correction):
1169
1176
  text += (
1170
1177
  f" The expression '{correction}' will determine whether to use the "
1171
1178
  "Yeh-Hummer hydrodynamic correction for the finite cell size using "
1172
- f"a viscosity of {P['viscosity']}."
1179
+ f"a viscosity of {viscosity}."
1173
1180
  )
1174
1181
  else:
1175
1182
  if isinstance(correction, str):
@@ -1178,7 +1185,7 @@ class Diffusivity(seamm.Node):
1178
1185
  text += (
1179
1186
  " The calculated diffusivity will be corrected for the finite cell "
1180
1187
  "size using the Yeh-Hummer hydrodynamic correction using "
1181
- f"a viscosity of {P['viscosity']}."
1188
+ f"a viscosity of {viscosity}."
1182
1189
  )
1183
1190
 
1184
1191
  text += "\n\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffusivity_step
3
- Version: 2026.3.15
3
+ Version: 2026.3.26
4
4
  Summary: A SEAMM plug-in for Diffusivity
5
5
  Home-page: https://github.com/molssi-seamm/diffusivity_step
6
6
  Author: Paul Saxe
@@ -103,6 +103,11 @@ award CHE-2136142.
103
103
  =======
104
104
  History
105
105
  =======
106
+ 2026.3.26 -- Bugfix: Corrected handling of viscosity <= 0.0
107
+ * Ignore the hydrostatic correction if the given viscosity is less than or equal
108
+ to 0. This allows a flowchart to work more simply whether the viscosity os know or
109
+ not.
110
+
106
111
  2026.3.15 -- Fixed an error with MLFFs and protected the viscosity correction.
107
112
  * Fixed and error with the name of the MLFF, which caused the code to crash after
108
113
  printing the results but before ending.