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 CHANGED
@@ -1,5 +1,5 @@
1
1
  from . import foundation, soil_classifier, spt
2
2
 
3
- __version__ = "0.7.0"
3
+ __version__ = "0.7.1"
4
4
 
5
5
  __all__ = ["foundation", "soil_classifier", "spt"]
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, self.length, self.footing_shape
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", param_value=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
 
@@ -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.0
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
+ ![geolysis excel example](geolysis_excel_example.gif)
103
+
100
104
  ## Project Structure
101
105
 
102
106
  .
@@ -1,5 +1,5 @@
1
- geolysis/__init__.py,sha256=Jci65l56vPOCLgyRSCpXTFEo-hZw93M-hUL26YUf3TM,122
2
- geolysis/foundation.py,sha256=E0d-hRoIa2EjyRW98UVAaGD02ekYh4TFABhQi1MloVw,11602
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=eHDHXJt8suncpyUUp4O2JIMaqusnLo2q5_VBGwkmJRs,3139
20
- geolysis-0.7.0.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
21
- geolysis-0.7.0.dist-info/METADATA,sha256=TOHlHHggMorq2vjf7exOONsNxSFC6NEjZpyiEWzHwPU,7368
22
- geolysis-0.7.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
23
- geolysis-0.7.0.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
24
- geolysis-0.7.0.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5