geolysis 0.7.1__py3-none-any.whl → 0.7.3__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.1"
3
+ __version__ = "0.7.3"
4
4
 
5
5
  __all__ = ["foundation", "soil_classifier", "spt"]
geolysis/spt.py CHANGED
@@ -7,7 +7,7 @@ from abc import abstractmethod
7
7
  from typing import Final, Sequence, Literal
8
8
 
9
9
  from .utils import enum_repr, isclose, log10, mean, round_, sqrt, validators
10
- from .utils.exceptions import EnumErrorMsg, ErrorMsg
10
+ from .utils.exceptions import EnumErrorMsg, ErrorMsg, ValidationError
11
11
 
12
12
  __all__ = ["SPTNDesign",
13
13
  "HammerType",
@@ -53,6 +53,10 @@ class SPTNDesign:
53
53
  @corrected_spt_n_values.setter
54
54
  @validators.min_len(1)
55
55
  def corrected_spt_n_values(self, val: Sequence[float]) -> None:
56
+ for v in val:
57
+ if v <= 0.0 or v > 100:
58
+ raise ValidationError(
59
+ "SPT N-values must be between 0.0 and 100.")
56
60
  self._corrected_spt_n_values = val
57
61
 
58
62
  @staticmethod
@@ -300,6 +304,7 @@ class OPC:
300
304
  return self._std_spt_n_value
301
305
 
302
306
  @std_spt_n_value.setter
307
+ @validators.le(100)
303
308
  @validators.gt(0.0)
304
309
  def std_spt_n_value(self, val: float) -> None:
305
310
  self._std_spt_n_value = val
@@ -494,6 +499,7 @@ class DilatancyCorrection:
494
499
  return self._corr_spt_n_value
495
500
 
496
501
  @corr_spt_n_value.setter
502
+ @validators.le(100.0)
497
503
  @validators.gt(0.0)
498
504
  def corr_spt_n_value(self, val: float) -> None:
499
505
  self._corr_spt_n_value = val
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.7.1
3
+ Version: 0.7.3
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,57 +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>
99
-
100
- # Microsoft Excel Example
101
-
102
- ![geolysis excel example](geolysis_excel_example.gif)
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.
103
123
 
104
124
  ## Project Structure
105
125
 
@@ -166,43 +186,6 @@ SoilClf(symbol='A-6(4)', description='Clayey soils')
166
186
  Check out more examples
167
187
  [here](https://docs.geolysis.io/en/latest/user_guide/getting_started.html#quick-start)
168
188
 
169
- ## Features
170
-
171
- <table>
172
- <tr>
173
- <td><strong>Soil Classification</strong></td>
174
- <td>AASHTO Classification System</td>
175
- </tr>
176
- <tr>
177
- <td></td>
178
- <td>Unified Soil Classification System</td>
179
- </tr>
180
- <tr>
181
- <td><strong>Standard Penetration Test (SPT) Analysis</strong></td>
182
- <td>SPT Energy Correction</td>
183
- </tr>
184
- <tr>
185
- <td></td>
186
- <td>SPT Overburden Pressure Correction</td>
187
- </tr>
188
- <tr>
189
- <td></td>
190
- <td>Dilatancy Correction</td>
191
- </tr>
192
- <tr>
193
- <td></td>
194
- <td>SPT N-Design Calculation</td>
195
- </tr>
196
- <tr>
197
- <td><strong>Bearing Capacity Estimation</strong></td>
198
- <td>Allowable Bearing Capacity Estimation</td>
199
- </tr>
200
- <tr>
201
- <td></td>
202
- <td>Ultimate Bearing Capacity Estimation</td>
203
- </tr>
204
- </table>
205
-
206
189
  ## Documentation
207
190
 
208
191
  Full documentation is available [here](https://docs.geolysis.io/en/latest/)
@@ -220,5 +203,5 @@ file for more details.
220
203
 
221
204
  ## Contact
222
205
 
223
- For questions or feedback, please contact us at
224
- [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,7 +1,7 @@
1
- geolysis/__init__.py,sha256=doEthTEMHHK5V-a9L90VQf2YQ_nWHKbtT0fuyV19j38,122
1
+ geolysis/__init__.py,sha256=tB9wh0D84gDFP-Qawiw-tgXqyYB_apapJ9hJj6uGP1U,122
2
2
  geolysis/foundation.py,sha256=gxI6bLbUrxQNhoKJis5glDysnI6PgqBkMM9m5CQztsg,11695
3
3
  geolysis/soil_classifier.py,sha256=2C-4hpgXNo2DUgXKcokUh3qjAH70qvgOCnxsL_NnmTw,26880
4
- geolysis/spt.py,sha256=7C8FPwwUej_YLkLAMMyUVhWYoh9FH4__6g5_G8NSas0,17507
4
+ geolysis/spt.py,sha256=B9tR4GapKVFHsGHkcFHW68-K2w7szLmtBC9Ejmhz0lY,17736
5
5
  geolysis/bearing_capacity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  geolysis/bearing_capacity/abc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  geolysis/bearing_capacity/abc/cohl/__init__.py,sha256=sWhQJj5klrenbwgaBAWRM23BQCcudZM4Ztwg8auxNw8,5399
@@ -17,8 +17,8 @@ geolysis/bearing_capacity/ubc/vesic_ubc.py,sha256=zlFI26tY_L1LCb6T7q4NY4E0pTivdj
17
17
  geolysis/utils/__init__.py,sha256=713rJNWVFLrP4CNon4i-xUf5rF5eA40Ydg-F1UV8o-0,2339
18
18
  geolysis/utils/exceptions.py,sha256=ivuyxqz0B7nmA5sXMfw4o7KPnQHoaGbLHmJCEiCEaAc,929
19
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,,
20
+ geolysis-0.7.3.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
21
+ geolysis-0.7.3.dist-info/METADATA,sha256=x-9PiEkGWxqWKrTjQZ4VnHlZ8OfkQPjGlOwkxMn_kaU,7235
22
+ geolysis-0.7.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
23
+ geolysis-0.7.3.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
24
+ geolysis-0.7.3.dist-info/RECORD,,