geolysis 0.7.0__py3-none-any.whl → 0.7.2__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.2"
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.2
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
@@ -49,53 +49,77 @@ alt="geolysislogo" width="75%" />
49
49
 
50
50
  </div>
51
51
 
52
- `geolysis` is an open-source library for geotechnical analysis and modeling.
53
- It offers tools for soil classification, Standard Penetration Test (SPT)
54
- analysis, and bearing capacity estimation, among others.
55
-
56
- The `geolysis` library is among four main projects: `geolysis.gui`,
57
- `geolysis.excel`, and `geolysis.ai`. The geolysis library powers all of these
58
- projects.
59
-
60
- **_The `geolysis` projects are currently under developement and not yet
61
- publicly available_**.
62
-
63
- **_Active development of `geolysis` occurs on the `dev` branch. For more
64
- information on the latest features of `geolysis`, switch to the
65
- `dev` branch_**.
66
-
67
- Here are brief descriptions of these projects:
68
-
69
- <table>
70
- <tr>
71
- <td>
72
- <strong>geolysis.gui</strong>
73
- </td>
74
- <td>A graphical user interface that allows users to interact with the
75
- geolysis library. Through this interface, users can view generated reports
76
- and visualizations, such as Particle Size Distribution (PSD) curves,
77
- Atterberg Limits plots, and Compaction curves, among others.
78
- Additionally, it enables users to conduct foundation analysis and
79
- design, among other functionalities.
80
- </td>
81
- </tr>
82
- <tr>
83
- <td>
84
- <strong>geolysis.excel</strong>
85
- </td>
86
- <td>An add-in for Microsoft Excel that performs simple geotechnical
87
- analysis. It offers some features similar to <code>geolysis.gui</code>
88
- within Microsoft Excel.
89
- </td>
90
- </tr>
91
- <tr>
92
- <td>
93
- <strong>geolysis.ai</strong>
94
- </td>
95
- <td>Offers machine learning models that are trained using geotechnical data.
96
- </td>
97
- </tr>
98
- </table>
52
+ `geolysis` is an open-source python package (library) for geotechnical analysis
53
+ and modeling. It offers tools for soil classification, Standard Penetration
54
+ Test (SPT) analysis, and bearing capacity estimation, among others.
55
+
56
+ The `geolysis` package is among three other projects, `geolysis.gui`,
57
+ `geolysis.excel`, and `geolysis.ai`.
58
+
59
+ Here are brief descriptions of the `geolysis` projects:
60
+
61
+ 1. `geolysis`
62
+
63
+ A python package (library) which provides the core functionalities for
64
+ `geolysis.gui` and the `geolysis.excel` applications. Current features
65
+ provided by the `geolysis` package are shown in the table below.
66
+
67
+ <table>
68
+ <tr>
69
+ <td><strong>Soil Classification</strong></td>
70
+ <td>AASHTO Classification System</td>
71
+ </tr>
72
+ <tr>
73
+ <td></td>
74
+ <td>Unified Soil Classification System</td>
75
+ </tr>
76
+ <tr>
77
+ <td><strong>Standard Penetration Test (SPT) Analysis</strong></td>
78
+ <td>SPT Energy Correction</td>
79
+ </tr>
80
+ <tr>
81
+ <td></td>
82
+ <td>SPT Overburden Pressure Correction</td>
83
+ </tr>
84
+ <tr>
85
+ <td></td>
86
+ <td>SPT Dilatancy Correction</td>
87
+ </tr>
88
+ <tr>
89
+ <td></td>
90
+ <td>SPT N-Design Calculation</td>
91
+ </tr>
92
+ <tr>
93
+ <td><strong>Bearing Capacity Estimation</strong></td>
94
+ <td>Allowable Bearing Capacity Estimation</td>
95
+ </tr>
96
+ <tr>
97
+ <td></td>
98
+ <td>Ultimate Bearing Capacity Estimation</td>
99
+ </tr>
100
+ </table>
101
+
102
+ 2. `geolysis.gui`
103
+
104
+ A graphical user interface that allows users to interact with the `geolysis`
105
+ package. Through this interface, users can view generated reports and
106
+ visualizations, such as Particle Size Distribution (PSD) curves, Atterberg
107
+ Limits plots, and Compaction curves, among others.
108
+
109
+ 3. `geolysis.excel`
110
+
111
+ An add-in for Microsoft Excel that performs simple geotechnical analysis.
112
+ It offers some features similar to `geolysis.gui` within Microsoft Excel.
113
+ Below is an example of the Microsoft Excel addin.
114
+
115
+ <div align="center">
116
+ <img src="https://raw.githubusercontent.com/patrickboateng/geolysis/main/docs/_static/geolysis_excel_example.gif"
117
+ alt="geolysis excel example" width="100%" />
118
+ </div><br>
119
+
120
+ 4. `geolysis.ai`
121
+
122
+ Offers machine learning models that are trained using geotechnical data.
99
123
 
100
124
  ## Project Structure
101
125
 
@@ -162,43 +186,6 @@ SoilClf(symbol='A-6(4)', description='Clayey soils')
162
186
  Check out more examples
163
187
  [here](https://docs.geolysis.io/en/latest/user_guide/getting_started.html#quick-start)
164
188
 
165
- ## Features
166
-
167
- <table>
168
- <tr>
169
- <td><strong>Soil Classification</strong></td>
170
- <td>AASHTO Classification System</td>
171
- </tr>
172
- <tr>
173
- <td></td>
174
- <td>Unified Soil Classification System</td>
175
- </tr>
176
- <tr>
177
- <td><strong>Standard Penetration Test (SPT) Analysis</strong></td>
178
- <td>SPT Energy Correction</td>
179
- </tr>
180
- <tr>
181
- <td></td>
182
- <td>SPT Overburden Pressure Correction</td>
183
- </tr>
184
- <tr>
185
- <td></td>
186
- <td>Dilatancy Correction</td>
187
- </tr>
188
- <tr>
189
- <td></td>
190
- <td>SPT N-Design Calculation</td>
191
- </tr>
192
- <tr>
193
- <td><strong>Bearing Capacity Estimation</strong></td>
194
- <td>Allowable Bearing Capacity Estimation</td>
195
- </tr>
196
- <tr>
197
- <td></td>
198
- <td>Ultimate Bearing Capacity Estimation</td>
199
- </tr>
200
- </table>
201
-
202
189
  ## Documentation
203
190
 
204
191
  Full documentation is available [here](https://docs.geolysis.io/en/latest/)
@@ -216,5 +203,5 @@ file for more details.
216
203
 
217
204
  ## Contact
218
205
 
219
- For questions or feedback, please contact us at
220
- [boatengpato.pb@gmail.com](mailto:boatengpato.pb@gmail.com)
206
+ For questions or feedback, please
207
+ contact [boatengpato.pb@gmail.com](mailto:boatengpato.pb@gmail.com)
@@ -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=AvRgv11HmUiEzG07RQS3vGM6j234EtzUPJKnSGUBePo,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.2.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
21
+ geolysis-0.7.2.dist-info/METADATA,sha256=XjRf0LvX0IAhJgp2mkMk-uNTTsuwgHZ4iovkMwC2oUI,7235
22
+ geolysis-0.7.2.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
23
+ geolysis-0.7.2.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
24
+ geolysis-0.7.2.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