geolysis 0.7.0__py3-none-any.whl → 0.7.1__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/foundation.py +5 -2
- geolysis/utils/validators.py +3 -0
- {geolysis-0.7.0.dist-info → geolysis-0.7.1.dist-info}/METADATA +5 -1
- {geolysis-0.7.0.dist-info → geolysis-0.7.1.dist-info}/RECORD +8 -8
- {geolysis-0.7.0.dist-info → geolysis-0.7.1.dist-info}/WHEEL +1 -1
- {geolysis-0.7.0.dist-info → geolysis-0.7.1.dist-info}/licenses/LICENSE.txt +0 -0
- {geolysis-0.7.0.dist-info → geolysis-0.7.1.dist-info}/top_level.txt +0 -0
geolysis/__init__.py
CHANGED
geolysis/foundation.py
CHANGED
@@ -320,7 +320,9 @@ class FoundationSize:
|
|
320
320
|
"""Returns the :attr:`effective_width`, :attr:`length`, and
|
321
321
|
:attr:`footing_shape` of the foundation footing.
|
322
322
|
"""
|
323
|
-
width, length, shape = self.effective_width,
|
323
|
+
width, length, shape = (self.effective_width,
|
324
|
+
self.length,
|
325
|
+
self.footing_shape)
|
324
326
|
|
325
327
|
if not isclose(width, length) and shape != Shape.STRIP:
|
326
328
|
shape = Shape.RECTANGLE
|
@@ -374,7 +376,8 @@ def create_foundation(depth: float,
|
|
374
376
|
try:
|
375
377
|
shape = Shape(str(shape).casefold())
|
376
378
|
except ValueError as e:
|
377
|
-
msg = EnumErrorMsg(param_name="shape",
|
379
|
+
msg = EnumErrorMsg(param_name="shape",
|
380
|
+
param_value=shape,
|
378
381
|
param_type=Shape)
|
379
382
|
raise ValueError(msg) from e
|
380
383
|
|
geolysis/utils/validators.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"""validators"""
|
2
2
|
import operator
|
3
3
|
from typing import Callable, TypeAlias, Optional
|
4
|
+
from functools import wraps
|
4
5
|
|
5
6
|
from .exceptions import ValidationError
|
6
7
|
|
@@ -13,6 +14,7 @@ def _num_validator(bound: float, /, *,
|
|
13
14
|
exc_type: Callable,
|
14
15
|
err_msg: str):
|
15
16
|
def dec(fn):
|
17
|
+
@wraps(fn)
|
16
18
|
def wrapper(obj, val):
|
17
19
|
if not compare_fn(val, bound):
|
18
20
|
msg = f"{fn.__name__} must be {compare_symbol} {bound}"
|
@@ -30,6 +32,7 @@ def _len_validator(bound: float, /, *,
|
|
30
32
|
exc_type: Callable,
|
31
33
|
err_msg: str):
|
32
34
|
def dec(fn):
|
35
|
+
@wraps(fn)
|
33
36
|
def wrapper(obj, val):
|
34
37
|
_len = len(val)
|
35
38
|
if not compare_fn(_len, bound):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: geolysis
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.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
|
@@ -97,6 +97,10 @@ Here are brief descriptions of these projects:
|
|
97
97
|
</tr>
|
98
98
|
</table>
|
99
99
|
|
100
|
+
# Microsoft Excel Example
|
101
|
+
|
102
|
+

|
103
|
+
|
100
104
|
## Project Structure
|
101
105
|
|
102
106
|
.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
geolysis/__init__.py,sha256=
|
2
|
-
geolysis/foundation.py,sha256=
|
1
|
+
geolysis/__init__.py,sha256=doEthTEMHHK5V-a9L90VQf2YQ_nWHKbtT0fuyV19j38,122
|
2
|
+
geolysis/foundation.py,sha256=gxI6bLbUrxQNhoKJis5glDysnI6PgqBkMM9m5CQztsg,11695
|
3
3
|
geolysis/soil_classifier.py,sha256=2C-4hpgXNo2DUgXKcokUh3qjAH70qvgOCnxsL_NnmTw,26880
|
4
4
|
geolysis/spt.py,sha256=7C8FPwwUej_YLkLAMMyUVhWYoh9FH4__6g5_G8NSas0,17507
|
5
5
|
geolysis/bearing_capacity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -16,9 +16,9 @@ geolysis/bearing_capacity/ubc/terzaghi_ubc.py,sha256=zoTf2pVTd1zN_6-yuNK9njo-8rn
|
|
16
16
|
geolysis/bearing_capacity/ubc/vesic_ubc.py,sha256=zlFI26tY_L1LCb6T7q4NY4E0pTivdjYyTttp-VcIlvk,7405
|
17
17
|
geolysis/utils/__init__.py,sha256=713rJNWVFLrP4CNon4i-xUf5rF5eA40Ydg-F1UV8o-0,2339
|
18
18
|
geolysis/utils/exceptions.py,sha256=ivuyxqz0B7nmA5sXMfw4o7KPnQHoaGbLHmJCEiCEaAc,929
|
19
|
-
geolysis/utils/validators.py,sha256=
|
20
|
-
geolysis-0.7.
|
21
|
-
geolysis-0.7.
|
22
|
-
geolysis-0.7.
|
23
|
-
geolysis-0.7.
|
24
|
-
geolysis-0.7.
|
19
|
+
geolysis/utils/validators.py,sha256=g18NIlLaNSIjlBwRLkUQr68qcYnwzo5qcfY5y_GoO1Y,3205
|
20
|
+
geolysis-0.7.1.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
|
21
|
+
geolysis-0.7.1.dist-info/METADATA,sha256=Ul3uVbiX7sIty2eYbxzNuQV0yVH46HLIQwhQARR91JQ,7450
|
22
|
+
geolysis-0.7.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
23
|
+
geolysis-0.7.1.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
|
24
|
+
geolysis-0.7.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|