geolysis 0.15.0__py3-none-any.whl → 0.16.0__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.
- geolysis/__init__.py +1 -1
- geolysis/soil_classifier.py +26 -27
- {geolysis-0.15.0.dist-info → geolysis-0.16.0.dist-info}/METADATA +1 -1
- {geolysis-0.15.0.dist-info → geolysis-0.16.0.dist-info}/RECORD +7 -7
- {geolysis-0.15.0.dist-info → geolysis-0.16.0.dist-info}/WHEEL +0 -0
- {geolysis-0.15.0.dist-info → geolysis-0.16.0.dist-info}/licenses/LICENSE.txt +0 -0
- {geolysis-0.15.0.dist-info → geolysis-0.16.0.dist-info}/top_level.txt +0 -0
geolysis/__init__.py
CHANGED
geolysis/soil_classifier.py
CHANGED
@@ -4,7 +4,7 @@ from typing import Annotated, Sequence
|
|
4
4
|
|
5
5
|
from func_validator import validate_params, MustBeNonNegative
|
6
6
|
|
7
|
-
from .utils import isclose, round_
|
7
|
+
from .utils import isclose, round_
|
8
8
|
|
9
9
|
__all__ = [
|
10
10
|
"AtterbergLimits",
|
@@ -269,7 +269,8 @@ class AtterbergLimits:
|
|
269
269
|
|
270
270
|
@plastic_limit.setter
|
271
271
|
@validate_params
|
272
|
-
def plastic_limit(self,
|
272
|
+
def plastic_limit(self,
|
273
|
+
plastic_limit: Annotated[float, MustBeNonNegative]):
|
273
274
|
if self.liquid_limit < plastic_limit:
|
274
275
|
msg = (
|
275
276
|
f"plastic_limit: {plastic_limit} cannot be greater than "
|
@@ -363,7 +364,7 @@ class _SizeDistribution:
|
|
363
364
|
|
364
365
|
@property
|
365
366
|
def coeff_of_curvature(self) -> float:
|
366
|
-
return (self.d_30**2.0) / (self.d_60 * self.d_10)
|
367
|
+
return (self.d_30 ** 2.0) / (self.d_60 * self.d_10)
|
367
368
|
|
368
369
|
@property
|
369
370
|
def coeff_of_uniformity(self) -> float:
|
@@ -391,9 +392,7 @@ class _SizeDistribution:
|
|
391
392
|
|
392
393
|
def has_particle_sizes(self) -> bool:
|
393
394
|
"""Checks if particle sizes are provided."""
|
394
|
-
|
395
|
-
return False
|
396
|
-
return True
|
395
|
+
return all((self.d_10, self.d_30, self.d_60))
|
397
396
|
|
398
397
|
|
399
398
|
class PSD:
|
@@ -402,12 +401,12 @@ class PSD:
|
|
402
401
|
"""
|
403
402
|
|
404
403
|
def __init__(
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
404
|
+
self,
|
405
|
+
fines: float,
|
406
|
+
sand: float,
|
407
|
+
d_10: float | None = None,
|
408
|
+
d_30: float | None = None,
|
409
|
+
d_60: float | None = None,
|
411
410
|
):
|
412
411
|
"""
|
413
412
|
:param fines: Percentage of fines in soil sample (%) i.e. The
|
@@ -654,10 +653,10 @@ class USCS:
|
|
654
653
|
"""
|
655
654
|
|
656
655
|
def __init__(
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
656
|
+
self,
|
657
|
+
atterberg_limits: AtterbergLimits,
|
658
|
+
psd: PSD,
|
659
|
+
organic=False,
|
661
660
|
):
|
662
661
|
"""
|
663
662
|
:param atterberg_limits: Atterberg limits of the soil.
|
@@ -785,9 +784,9 @@ class USCS:
|
|
785
784
|
|
786
785
|
|
787
786
|
def create_aashto_classifier(
|
788
|
-
|
789
|
-
|
790
|
-
|
787
|
+
liquid_limit: float,
|
788
|
+
plastic_limit: float,
|
789
|
+
fines: float,
|
791
790
|
) -> AASHTO:
|
792
791
|
"""A helper function that encapsulates the creation of a AASHTO
|
793
792
|
classifier.
|
@@ -810,14 +809,14 @@ def create_aashto_classifier(
|
|
810
809
|
|
811
810
|
|
812
811
|
def create_uscs_classifier(
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
812
|
+
liquid_limit: float,
|
813
|
+
plastic_limit: float,
|
814
|
+
fines: float,
|
815
|
+
sand: float,
|
816
|
+
d_10: float | None = None,
|
817
|
+
d_30: float | None = None,
|
818
|
+
d_60: float | None = None,
|
819
|
+
organic: bool = False,
|
821
820
|
):
|
822
821
|
"""A helper function that encapsulates the creation of a USCS
|
823
822
|
classifier.
|
@@ -1,7 +1,7 @@
|
|
1
|
-
geolysis/__init__.py,sha256=
|
1
|
+
geolysis/__init__.py,sha256=vh-ni4mumTDJIlRrPx1_vI8wPtMXiE6AlyKOunD1kR4,161
|
2
2
|
geolysis/exceptions.py,sha256=NocUF7-vaFsBJyi0QmH2EBFCpO2RT90RLEB66BCW_X0,74
|
3
3
|
geolysis/foundation.py,sha256=9o21R14Pm-HimSuQYqJXvbqQrWgS-z0XFjzjdyEIQ7Y,13319
|
4
|
-
geolysis/soil_classifier.py,sha256=
|
4
|
+
geolysis/soil_classifier.py,sha256=4P0l-zpjdcB2Q6NbjBCNTv1reK_-8uQiZnEH-y_ZKvY,27758
|
5
5
|
geolysis/spt.py,sha256=7xa4KkzBjbtSFo0zoZleCCCyeE81w4d2eicjlFy3p28,17273
|
6
6
|
geolysis/bearing_capacity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
geolysis/bearing_capacity/abc/__init__.py,sha256=nycD68gdA116n2VX5fT_hq7ZZz3CF4OVuU3DIgnlnZw,518
|
@@ -16,8 +16,8 @@ geolysis/bearing_capacity/ubc/_terzaghi_ubc.py,sha256=3g1kyugpuNy4lvcG_uZBOd3PWI
|
|
16
16
|
geolysis/bearing_capacity/ubc/_vesic_ubc.py,sha256=yZS1RH1NfHoYk9UNCKFSjjEOok-mLkStt2rg5X_zG7Y,6810
|
17
17
|
geolysis/utils/__init__.py,sha256=T4B8itFH9971MMFpOaAbOMzkIPfrAkZQtGa6jcaI_mY,1768
|
18
18
|
geolysis/utils/math.py,sha256=Nqg6SFIy3peSC-n-rq0KjryOdWTqh9jCF2L_qvx5Yg8,1231
|
19
|
-
geolysis-0.
|
20
|
-
geolysis-0.
|
21
|
-
geolysis-0.
|
22
|
-
geolysis-0.
|
23
|
-
geolysis-0.
|
19
|
+
geolysis-0.16.0.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
|
20
|
+
geolysis-0.16.0.dist-info/METADATA,sha256=zdRe2OQ2DTMTDt6sb-p_jQ3zNQpyJpqfUa5MX2Xpfo4,6833
|
21
|
+
geolysis-0.16.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
geolysis-0.16.0.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
|
23
|
+
geolysis-0.16.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|