geolysis 0.10.0__tar.gz → 0.10.1__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 (32) hide show
  1. {geolysis-0.10.0 → geolysis-0.10.1}/PKG-INFO +2 -1
  2. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/__init__.py +1 -1
  3. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/_cohl/_core.py +11 -5
  4. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/_cohl/terzaghi_abc.py +5 -0
  5. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/ubc/_core.py +17 -0
  6. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/soil_classifier.py +3 -3
  7. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis.egg-info/PKG-INFO +2 -1
  8. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis.egg-info/requires.txt +1 -0
  9. {geolysis-0.10.0 → geolysis-0.10.1}/pyproject.toml +1 -1
  10. {geolysis-0.10.0 → geolysis-0.10.1}/LICENSE.txt +0 -0
  11. {geolysis-0.10.0 → geolysis-0.10.1}/README.md +0 -0
  12. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/__init__.py +0 -0
  13. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/__init__.py +0 -0
  14. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/_cohl/__init__.py +0 -0
  15. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/_cohl/bowles_abc.py +0 -0
  16. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/abc/_cohl/meyerhof_abc.py +0 -0
  17. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/ubc/__init__.py +0 -0
  18. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/ubc/_hansen_ubc.py +0 -0
  19. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/ubc/_terzaghi_ubc.py +0 -0
  20. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/bearing_capacity/ubc/_vesic_ubc.py +0 -0
  21. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/foundation.py +0 -0
  22. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/spt.py +0 -0
  23. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis/utils.py +0 -0
  24. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis.egg-info/SOURCES.txt +0 -0
  25. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis.egg-info/dependency_links.txt +0 -0
  26. {geolysis-0.10.0 → geolysis-0.10.1}/geolysis.egg-info/top_level.txt +0 -0
  27. {geolysis-0.10.0 → geolysis-0.10.1}/setup.cfg +0 -0
  28. {geolysis-0.10.0 → geolysis-0.10.1}/setup.py +0 -0
  29. {geolysis-0.10.0 → geolysis-0.10.1}/tests/test_docs.py +0 -0
  30. {geolysis-0.10.0 → geolysis-0.10.1}/tests/test_foundation.py +0 -0
  31. {geolysis-0.10.0 → geolysis-0.10.1}/tests/test_soil_classifier.py +0 -0
  32. {geolysis-0.10.0 → geolysis-0.10.1}/tests/test_spt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: geolysis is an opensource software for geotechnical engineering analysis and modeling.
5
5
  Author-email: Patrick Boateng <boatengpato.pb@gmail.com>
6
6
  License: MIT License
@@ -24,6 +24,7 @@ Classifier: Topic :: Scientific/Engineering
24
24
  Requires-Python: >=3.11
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE.txt
27
+ Requires-Dist: func-validator
27
28
  Provides-Extra: dev
28
29
  Requires-Dist: pytest; extra == "dev"
29
30
  Requires-Dist: pytest-cov; extra == "dev"
@@ -1,5 +1,5 @@
1
1
  from . import bearing_capacity, foundation, soil_classifier, spt
2
2
 
3
- __version__ = "0.10.0"
3
+ __version__ = "0.10.1"
4
4
 
5
5
  __all__ = ["foundation", "soil_classifier", "spt", "bearing_capacity"]
@@ -15,10 +15,10 @@ class AllowableBearingCapacity(ABC):
15
15
  MAX_TOL_SETTLEMENT = 25.4
16
16
 
17
17
  def __init__(
18
- self,
19
- corrected_spt_n_value: float,
20
- tol_settlement: float,
21
- foundation_size: Foundation,
18
+ self,
19
+ corrected_spt_n_value: float,
20
+ tol_settlement: float,
21
+ foundation_size: Foundation,
22
22
  ) -> None:
23
23
  self.corrected_spt_n_value = corrected_spt_n_value
24
24
  self.tol_settlement = tol_settlement
@@ -42,7 +42,7 @@ class AllowableBearingCapacity(ABC):
42
42
  @tol_settlement.setter
43
43
  @validate_func_args
44
44
  def tol_settlement(
45
- self, tol_settlement: Annotated[float, MustBeLessThanOrEqual(25.4)]
45
+ self, tol_settlement: Annotated[float, MustBeLessThanOrEqual(25.4)]
46
46
  ):
47
47
  self._tol_settlement = tol_settlement
48
48
 
@@ -56,5 +56,11 @@ class AllowableBearingCapacity(ABC):
56
56
  width = self.foundation_size.width
57
57
  return min(1.0 + 0.33 * depth / width, 1.33)
58
58
 
59
+ def bearing_capacity_results(self) -> dict:
60
+ return {
61
+ "bearing_capacity": self.bearing_capacity(),
62
+ "depth_factor": self._fd(),
63
+ }
64
+
59
65
  @abstractmethod
60
66
  def bearing_capacity(self): ...
@@ -103,6 +103,11 @@ class TerzaghiABC4PadFoundation(AllowableBearingCapacity):
103
103
  * self._sr()
104
104
  )
105
105
 
106
+ def bearing_capacity_results(self) -> dict:
107
+ res = super().bearing_capacity_results()
108
+ res["water_correction_factor"] = self._cw()
109
+ return res
110
+
106
111
 
107
112
  class TerzaghiABC4MatFoundation(TerzaghiABC4PadFoundation):
108
113
  r"""Allowable bearing capacity for mat foundation on cohesionless
@@ -195,6 +195,23 @@ class UltimateBearingCapacity(ABC):
195
195
  + self._embedment_term(0.5)
196
196
  )
197
197
 
198
+ def bearing_capacity_results(self) -> dict:
199
+ return {
200
+ "bearing_capacity": self.bearing_capacity(),
201
+ "n_c": self.n_c,
202
+ "n_q": self.n_q,
203
+ "n_gamma": self.n_gamma,
204
+ "s_c": self.s_c,
205
+ "s_q": self.s_q,
206
+ "s_gamma": self.s_gamma,
207
+ "d_c": self.d_c,
208
+ "d_q": self.d_q,
209
+ "d_gamma": self.d_gamma,
210
+ "i_c": self.i_c,
211
+ "i_q": self.i_q,
212
+ "i_gamma": self.i_gamma,
213
+ }
214
+
198
215
  @property
199
216
  @abstractmethod
200
217
  def n_c(self) -> float:
@@ -657,9 +657,7 @@ class USCS:
657
657
  ):
658
658
  """
659
659
  :param atterberg_limits: Atterberg limits of the soil.
660
-
661
660
  :param psd: Particle size distribution of the soil.
662
-
663
661
  :param organic: Indicates whether soil is organic or not.
664
662
  """
665
663
  self.atterberg_limits = atterberg_limits
@@ -782,7 +780,9 @@ class USCS:
782
780
 
783
781
 
784
782
  def create_aashto_classifier(
785
- liquid_limit: float, plastic_limit: float, fines: float
783
+ liquid_limit: float,
784
+ plastic_limit: float,
785
+ fines: float,
786
786
  ) -> AASHTO:
787
787
  """A helper function that encapsulates the creation of a AASHTO
788
788
  classifier.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: geolysis is an opensource software for geotechnical engineering analysis and modeling.
5
5
  Author-email: Patrick Boateng <boatengpato.pb@gmail.com>
6
6
  License: MIT License
@@ -24,6 +24,7 @@ Classifier: Topic :: Scientific/Engineering
24
24
  Requires-Python: >=3.11
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE.txt
27
+ Requires-Dist: func-validator
27
28
  Provides-Extra: dev
28
29
  Requires-Dist: pytest; extra == "dev"
29
30
  Requires-Dist: pytest-cov; extra == "dev"
@@ -1,3 +1,4 @@
1
+ func-validator
1
2
 
2
3
  [dev]
3
4
  pytest
@@ -15,7 +15,7 @@ keywords = [
15
15
  "standard-penetration-test-analysis",
16
16
  ]
17
17
  authors = [{ name = "Patrick Boateng", email = "boatengpato.pb@gmail.com" }]
18
- dependencies = []
18
+ dependencies = ["func-validator"]
19
19
  classifiers = [
20
20
  "Development Status :: 4 - Beta",
21
21
  "Intended Audience :: Developers",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes