py-pilecore 0.4.2__tar.gz → 0.5.1__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.

Potentially problematic release.


This version of py-pilecore might be problematic. Click here for more details.

Files changed (42) hide show
  1. {py_pilecore-0.4.2/src/py_pilecore.egg-info → py_pilecore-0.5.1}/PKG-INFO +2 -2
  2. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/pyproject.toml +4 -2
  3. {py_pilecore-0.4.2 → py_pilecore-0.5.1/src/py_pilecore.egg-info}/PKG-INFO +2 -2
  4. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/py_pilecore.egg-info/SOURCES.txt +12 -4
  5. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/py_pilecore.egg-info/requires.txt +1 -1
  6. py_pilecore-0.5.1/src/pypilecore/__init__.py +7 -0
  7. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/_version.py +1 -1
  8. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/api.py +26 -6
  9. py_pilecore-0.5.1/src/pypilecore/common/__init__.py +0 -0
  10. py_pilecore-0.5.1/src/pypilecore/common/piles/__init__.py +6 -0
  11. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/__init__.py +18 -0
  12. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/components/__init__.py +10 -0
  13. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/components/common.py +493 -0
  14. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/components/rectangle.py +521 -0
  15. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/components/round.py +435 -0
  16. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/main.py +335 -0
  17. py_pilecore-0.5.1/src/pypilecore/common/piles/geometry/materials.py +173 -0
  18. py_pilecore-0.5.1/src/pypilecore/common/piles/main.py +290 -0
  19. py_pilecore-0.5.1/src/pypilecore/common/piles/type.py +196 -0
  20. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/input/__init__.py +0 -2
  21. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/input/multi_cpt.py +7 -119
  22. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/input/soil_properties.py +12 -1
  23. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/grouper_result.py +3 -2
  24. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/multi_cpt_results.py +12 -9
  25. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/single_cpt_results.py +1 -1
  26. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/soil_properties.py +2 -2
  27. py_pilecore-0.4.2/src/pypilecore/__init__.py +0 -5
  28. py_pilecore-0.4.2/src/pypilecore/input/pile_properties.py +0 -213
  29. py_pilecore-0.4.2/src/pypilecore/results/pile_properties.py +0 -891
  30. py_pilecore-0.4.2/tests/test_input.py +0 -763
  31. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/LICENSE +0 -0
  32. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/README.md +0 -0
  33. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/setup.cfg +0 -0
  34. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/py_pilecore.egg-info/dependency_links.txt +0 -0
  35. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/py_pilecore.egg-info/top_level.txt +0 -0
  36. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/exceptions.py +0 -0
  37. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/input/grouper_properties.py +0 -0
  38. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/plot_utils.py +0 -0
  39. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/__init__.py +0 -0
  40. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/load_settlement.py +0 -0
  41. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/results/post_processing.py +0 -0
  42. {py_pilecore-0.4.2 → py_pilecore-0.5.1}/src/pypilecore/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.4.2
3
+ Version: 0.5.1
4
4
  Summary: Public python SDK for the CEMS PileCore web-API.
5
5
  License: MIT License
6
6
 
@@ -32,7 +32,7 @@ License-File: LICENSE
32
32
  Requires-Dist: pygef<1,>0.8
33
33
  Requires-Dist: numpy<2,>1
34
34
  Requires-Dist: pandas<3,>2
35
- Requires-Dist: cems-nuclei[client]<1,>=0.5
35
+ Requires-Dist: cems-nuclei[client]<2,>=1
36
36
  Requires-Dist: matplotlib<4,>=3.8
37
37
  Requires-Dist: tqdm[notebook]<5,>4
38
38
  Requires-Dist: natsort<9,>8
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "py-pilecore"
7
- version = "0.4.2"
7
+ version = "0.5.1"
8
8
  description = "Public python SDK for the CEMS PileCore web-API."
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  'pygef>0.8,<1',
12
12
  'numpy>1,<2',
13
13
  'pandas>2,<3',
14
- 'cems-nuclei[client]>=0.5,<1',
14
+ 'cems-nuclei[client]>=1,<2',
15
15
  'matplotlib>=3.8,<4',
16
16
  "tqdm[notebook]>4,<5",
17
17
  "natsort>8,<9",
@@ -93,5 +93,7 @@ module = [
93
93
  "shapely.*",
94
94
  "pytest.*",
95
95
  "scipy.*",
96
+ "numpy.*",
97
+ "pandas.*",
96
98
  ]
97
99
  ignore_missing_imports = true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.4.2
3
+ Version: 0.5.1
4
4
  Summary: Public python SDK for the CEMS PileCore web-API.
5
5
  License: MIT License
6
6
 
@@ -32,7 +32,7 @@ License-File: LICENSE
32
32
  Requires-Dist: pygef<1,>0.8
33
33
  Requires-Dist: numpy<2,>1
34
34
  Requires-Dist: pandas<3,>2
35
- Requires-Dist: cems-nuclei[client]<1,>=0.5
35
+ Requires-Dist: cems-nuclei[client]<2,>=1
36
36
  Requires-Dist: matplotlib<4,>=3.8
37
37
  Requires-Dist: tqdm[notebook]<5,>4
38
38
  Requires-Dist: natsort<9,>8
@@ -12,17 +12,25 @@ src/pypilecore/api.py
12
12
  src/pypilecore/exceptions.py
13
13
  src/pypilecore/plot_utils.py
14
14
  src/pypilecore/utils.py
15
+ src/pypilecore/common/__init__.py
16
+ src/pypilecore/common/piles/__init__.py
17
+ src/pypilecore/common/piles/main.py
18
+ src/pypilecore/common/piles/type.py
19
+ src/pypilecore/common/piles/geometry/__init__.py
20
+ src/pypilecore/common/piles/geometry/main.py
21
+ src/pypilecore/common/piles/geometry/materials.py
22
+ src/pypilecore/common/piles/geometry/components/__init__.py
23
+ src/pypilecore/common/piles/geometry/components/common.py
24
+ src/pypilecore/common/piles/geometry/components/rectangle.py
25
+ src/pypilecore/common/piles/geometry/components/round.py
15
26
  src/pypilecore/input/__init__.py
16
27
  src/pypilecore/input/grouper_properties.py
17
28
  src/pypilecore/input/multi_cpt.py
18
- src/pypilecore/input/pile_properties.py
19
29
  src/pypilecore/input/soil_properties.py
20
30
  src/pypilecore/results/__init__.py
21
31
  src/pypilecore/results/grouper_result.py
22
32
  src/pypilecore/results/load_settlement.py
23
33
  src/pypilecore/results/multi_cpt_results.py
24
- src/pypilecore/results/pile_properties.py
25
34
  src/pypilecore/results/post_processing.py
26
35
  src/pypilecore/results/single_cpt_results.py
27
- src/pypilecore/results/soil_properties.py
28
- tests/test_input.py
36
+ src/pypilecore/results/soil_properties.py
@@ -1,7 +1,7 @@
1
1
  pygef<1,>0.8
2
2
  numpy<2,>1
3
3
  pandas<3,>2
4
- cems-nuclei[client]<1,>=0.5
4
+ cems-nuclei[client]<2,>=1
5
5
  matplotlib<4,>=3.8
6
6
  tqdm[notebook]<5,>4
7
7
  natsort<9,>8
@@ -0,0 +1,7 @@
1
+ from pypilecore._version import __version__
2
+ from pypilecore.common.piles.main import create_basic_pile
3
+
4
+ __all__ = [
5
+ "__version__",
6
+ "create_basic_pile",
7
+ ]
@@ -4,4 +4,4 @@ try:
4
4
  __version__ = version("py-pilecore")
5
5
  # during CI
6
6
  except PackageNotFoundError:
7
- __version__ = "0.4.2"
7
+ __version__ = "0.5.1"
@@ -32,7 +32,11 @@ def wait_until_ticket_is_ready(
32
32
  if verbose:
33
33
  logging.info("Polling ticket status")
34
34
  status_response = client.call_endpoint(
35
- "PileCore", "/get-task-status", schema=ticket.json(), return_response=True
35
+ "PileCore",
36
+ "/get-task-status",
37
+ version="v3",
38
+ schema=ticket.json(),
39
+ return_response=True,
36
40
  )
37
41
 
38
42
  # Check if the status response is OK
@@ -53,6 +57,7 @@ def wait_until_ticket_is_ready(
53
57
  result_response = client.call_endpoint(
54
58
  "PileCore",
55
59
  "/get-task-result",
60
+ version="v3",
56
61
  schema=ticket.json(),
57
62
  return_response=True,
58
63
  )
@@ -85,13 +90,16 @@ def get_multi_cpt_api_result(
85
90
  ticket = client.call_endpoint(
86
91
  "PileCore",
87
92
  "/compression/multiple-cpts/results",
93
+ version="v3",
88
94
  schema=payload,
89
95
  return_response=True,
90
96
  )
91
97
 
92
98
  wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
93
99
 
94
- return client.call_endpoint("PileCore", "/get-task-result", schema=ticket.json())
100
+ return client.call_endpoint(
101
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
102
+ )
95
103
 
96
104
 
97
105
  def get_multi_cpt_api_report(
@@ -116,12 +124,15 @@ def get_multi_cpt_api_report(
116
124
  ticket = client.call_endpoint(
117
125
  "PileCore",
118
126
  "/compression/multiple-cpts/report",
127
+ version="v3",
119
128
  schema=payload,
120
129
  return_response=True,
121
130
  )
122
131
  wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
123
132
 
124
- return client.call_endpoint("PileCore", "/get-task-result", schema=ticket.json())
133
+ return client.call_endpoint(
134
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
135
+ )
125
136
 
126
137
 
127
138
  def get_groups_api_result(
@@ -146,13 +157,16 @@ def get_groups_api_result(
146
157
  ticket = client.call_endpoint(
147
158
  "PileCore",
148
159
  "/grouper/group_cpts",
160
+ version="v3",
149
161
  schema=payload,
150
162
  return_response=True,
151
163
  )
152
164
 
153
165
  wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
154
166
 
155
- return client.call_endpoint("PileCore", "/get-task-result", schema=ticket.json())
167
+ return client.call_endpoint(
168
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
169
+ )
156
170
 
157
171
 
158
172
  def get_optimize_groups_api_result(
@@ -177,13 +191,16 @@ def get_optimize_groups_api_result(
177
191
  ticket = client.call_endpoint(
178
192
  "PileCore",
179
193
  "/grouper/optimize_groups",
194
+ version="v3",
180
195
  schema=payload,
181
196
  return_response=True,
182
197
  )
183
198
 
184
199
  wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
185
200
 
186
- return client.call_endpoint("PileCore", "/get-task-result", schema=ticket.json())
201
+ return client.call_endpoint(
202
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
203
+ )
187
204
 
188
205
 
189
206
  def get_groups_api_report(
@@ -208,10 +225,13 @@ def get_groups_api_report(
208
225
  ticket = client.call_endpoint(
209
226
  "PileCore",
210
227
  "/grouper/generate_grouper_report",
228
+ version="v3",
211
229
  schema=payload,
212
230
  return_response=True,
213
231
  )
214
232
 
215
233
  wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
216
234
 
217
- return client.call_endpoint("PileCore", "/get-task-result", schema=ticket.json())
235
+ return client.call_endpoint(
236
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
237
+ )
File without changes
@@ -0,0 +1,6 @@
1
+ from .main import PileProperties, create_basic_pile
2
+
3
+ __all__ = [
4
+ "PileProperties",
5
+ "create_basic_pile",
6
+ ]
@@ -0,0 +1,18 @@
1
+ from .components import (
2
+ PrimaryPileComponentDimension,
3
+ RectPileGeometryComponent,
4
+ RoundPileGeometryComponent,
5
+ _BasePileGeometryComponent,
6
+ )
7
+ from .main import PileGeometry
8
+ from .materials import Color, PileMaterial
9
+
10
+ __all__ = [
11
+ "PileGeometry",
12
+ "PileMaterial",
13
+ "Color",
14
+ "PrimaryPileComponentDimension",
15
+ "RoundPileGeometryComponent",
16
+ "RectPileGeometryComponent",
17
+ "_BasePileGeometryComponent",
18
+ ]
@@ -0,0 +1,10 @@
1
+ from .common import PrimaryPileComponentDimension, _BasePileGeometryComponent
2
+ from .rectangle import RectPileGeometryComponent
3
+ from .round import RoundPileGeometryComponent
4
+
5
+ __all__ = [
6
+ "_BasePileGeometryComponent",
7
+ "PrimaryPileComponentDimension",
8
+ "RectPileGeometryComponent",
9
+ "RoundPileGeometryComponent",
10
+ ]