geolysis 0.14.0__tar.gz → 0.15.0__tar.gz

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.
Files changed (33) hide show
  1. {geolysis-0.14.0 → geolysis-0.15.0}/PKG-INFO +1 -1
  2. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/__init__.py +1 -1
  3. geolysis-0.15.0/geolysis/exceptions.py +3 -0
  4. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/utils/__init__.py +1 -1
  5. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis.egg-info/PKG-INFO +1 -1
  6. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis.egg-info/SOURCES.txt +1 -0
  7. {geolysis-0.14.0 → geolysis-0.15.0}/tests/test_foundation.py +7 -4
  8. {geolysis-0.14.0 → geolysis-0.15.0}/tests/test_spt.py +15 -12
  9. {geolysis-0.14.0 → geolysis-0.15.0}/LICENSE.txt +0 -0
  10. {geolysis-0.14.0 → geolysis-0.15.0}/README.md +0 -0
  11. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/__init__.py +0 -0
  12. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/__init__.py +0 -0
  13. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/_cohl/__init__.py +0 -0
  14. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/_cohl/_core.py +0 -0
  15. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/_cohl/bowles_abc.py +0 -0
  16. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/_cohl/meyerhof_abc.py +0 -0
  17. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/abc/_cohl/terzaghi_abc.py +0 -0
  18. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/ubc/__init__.py +0 -0
  19. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/ubc/_core.py +0 -0
  20. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/ubc/_terzaghi_ubc.py +0 -0
  21. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/bearing_capacity/ubc/_vesic_ubc.py +0 -0
  22. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/foundation.py +0 -0
  23. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/soil_classifier.py +0 -0
  24. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/spt.py +0 -0
  25. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis/utils/math.py +0 -0
  26. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis.egg-info/dependency_links.txt +0 -0
  27. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis.egg-info/requires.txt +0 -0
  28. {geolysis-0.14.0 → geolysis-0.15.0}/geolysis.egg-info/top_level.txt +0 -0
  29. {geolysis-0.14.0 → geolysis-0.15.0}/pyproject.toml +0 -0
  30. {geolysis-0.14.0 → geolysis-0.15.0}/setup.cfg +0 -0
  31. {geolysis-0.14.0 → geolysis-0.15.0}/setup.py +0 -0
  32. {geolysis-0.14.0 → geolysis-0.15.0}/tests/test_docs.py +0 -0
  33. {geolysis-0.14.0 → geolysis-0.15.0}/tests/test_soil_classifier.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.14.0
3
+ Version: 0.15.0
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
@@ -1,5 +1,5 @@
1
1
  from . import bearing_capacity, foundation, soil_classifier, spt
2
2
 
3
- __version__ = "0.14.0"
3
+ __version__ = "0.15.0"
4
4
 
5
5
  __all__ = ["foundation", "soil_classifier", "spt", "bearing_capacity"]
@@ -0,0 +1,3 @@
1
+ from func_validator import ValidationError
2
+
3
+ __all__ = ["ValidationError"]
@@ -5,7 +5,7 @@ from typing import Callable
5
5
  from .math import *
6
6
  from . import math as m
7
7
 
8
- __all__ = ["AbstractStrEnum", "ValidationError", "add_repr", "round_"] + m.__all__
8
+ __all__ = ["AbstractStrEnum", "add_repr", "round_"] + m.__all__
9
9
 
10
10
 
11
11
  class StrEnumMeta(enum.EnumMeta):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.14.0
3
+ Version: 0.15.0
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
@@ -3,6 +3,7 @@ README.md
3
3
  pyproject.toml
4
4
  setup.py
5
5
  geolysis/__init__.py
6
+ geolysis/exceptions.py
6
7
  geolysis/foundation.py
7
8
  geolysis/soil_classifier.py
8
9
  geolysis/spt.py
@@ -1,6 +1,6 @@
1
1
  import unittest
2
2
 
3
- from func_validator import ValidationError
3
+ from geolysis.exceptions import ValidationError
4
4
 
5
5
  from geolysis.foundation import (
6
6
  CircularFooting,
@@ -61,7 +61,8 @@ class TestFoundation(unittest.TestCase):
61
61
 
62
62
  def test_foundation_size(self):
63
63
  footing = StripFooting(width=2.0)
64
- foundation = Foundation(depth=1.5, footing_size=footing, eccentricity=0.1)
64
+ foundation = Foundation(depth=1.5, footing_size=footing,
65
+ eccentricity=0.1)
65
66
  self.assertEqual(foundation.depth, 1.5)
66
67
  self.assertEqual(foundation.width, 2.0)
67
68
  self.assertEqual(foundation.length, float("inf"))
@@ -85,14 +86,16 @@ class TestFoundation(unittest.TestCase):
85
86
  self.assertEqual(foundation.footing_shape, Shape.STRIP)
86
87
 
87
88
  def test_create_foundation_square(self):
88
- foundation = create_foundation(depth=1.5, width=2.5, shape=Shape.SQUARE)
89
+ foundation = create_foundation(depth=1.5, width=2.5,
90
+ shape=Shape.SQUARE)
89
91
  self.assertEqual(foundation.depth, 1.5)
90
92
  self.assertEqual(foundation.width, 2.5)
91
93
  self.assertEqual(foundation.length, 2.5)
92
94
  self.assertEqual(foundation.footing_shape, Shape.SQUARE)
93
95
 
94
96
  def test_create_foundation_circle(self):
95
- foundation = create_foundation(depth=1.5, width=3.0, shape=Shape.CIRCLE)
97
+ foundation = create_foundation(depth=1.5, width=3.0,
98
+ shape=Shape.CIRCLE)
96
99
  self.assertEqual(foundation.depth, 1.5)
97
100
  self.assertEqual(foundation.width, 3.0)
98
101
  self.assertEqual(foundation.length, 3.0)
@@ -1,5 +1,5 @@
1
1
  import pytest
2
- from func_validator import ValidationError
2
+ from geolysis.exceptions import ValidationError
3
3
 
4
4
  from geolysis.spt import (
5
5
  DilatancyCorrection,
@@ -65,20 +65,22 @@ class TestEnergyCorrection:
65
65
  ],
66
66
  [
67
67
  (30, 0.6, 65.0, 3, HammerType.DONUT_1, SamplerType.STANDARD, 22.5),
68
- (30, 0.6, 120.0, 5, HammerType.AUTOMATIC, SamplerType.NON_STANDARD, 37.5),
69
- (30, 0.6, 170.0, 7, HammerType.DONUT_2, SamplerType.STANDARD, 27.3),
68
+ (30, 0.6, 120.0, 5, HammerType.AUTOMATIC, SamplerType.NON_STANDARD,
69
+ 37.5),
70
+ (
71
+ 30, 0.6, 170.0, 7, HammerType.DONUT_2, SamplerType.STANDARD, 27.3),
70
72
  (30, 0.6, 65.0, 12, HammerType.SAFETY, SamplerType.STANDARD, 27.5),
71
73
  ],
72
74
  )
73
75
  def test_energy_correction(
74
- self,
75
- rec_spt_n_val,
76
- energy_percentage,
77
- borehole_diameter,
78
- rod_len,
79
- hammer_type,
80
- sampler_type,
81
- expected,
76
+ self,
77
+ rec_spt_n_val,
78
+ energy_percentage,
79
+ borehole_diameter,
80
+ rod_len,
81
+ hammer_type,
82
+ sampler_type,
83
+ expected,
82
84
  ):
83
85
  energy_corr = EnergyCorrection(
84
86
  recorded_spt_n_value=rec_spt_n_val,
@@ -89,7 +91,8 @@ class TestEnergyCorrection:
89
91
  sampler_type=sampler_type,
90
92
  )
91
93
 
92
- assert energy_corr.standardized_spt_n_value() == pytest.approx(expected)
94
+ assert energy_corr.standardized_spt_n_value() == pytest.approx(
95
+ expected)
93
96
 
94
97
  def test_errors(self):
95
98
  # Provided an invalid value for hammer_type
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes