py-pilecore 0.3.0__py3-none-any.whl → 0.3.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.

Potentially problematic release.


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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Public python SDK for the CEMS PileCore web-API.
5
5
  License: MIT License
6
6
 
@@ -1,14 +1,14 @@
1
1
  pypilecore/__init__.py,sha256=T2Uuao6fboVhrzKI_Sa7jXbcNAUl_PKk9BFdsozOG98,78
2
- pypilecore/_version.py,sha256=u5a8MuyVlm36VXiKEYGftODGd_60MOLCDZ8IMh1Is5E,175
2
+ pypilecore/_version.py,sha256=YxvR7Y0Tsf_BUbHAeQJdfQVgFNjWkq8WBqPIIATmUb4,175
3
3
  pypilecore/api.py,sha256=Bq7FRSQQGOENY7HTI8bW41-WBNPpqXZvyN1A71VUam4,5141
4
4
  pypilecore/exceptions.py,sha256=-MZOfsxyHLCI0k1-wZFfVsMxc1lya5buuhLks5rxlCo,89
5
5
  pypilecore/plot_utils.py,sha256=rK5_067-4-x7LzZgt_t6ahcGrZInxNrqHqsy0RzCnq8,954
6
6
  pypilecore/utils.py,sha256=ib9LgJBIgWukL7zd_Zk1LP27UTMIZTRJ4RBB6ubn97o,1186
7
7
  pypilecore/input/__init__.py,sha256=tlmThdPtO8e6L6pqxuRQ7EOHRxYwuIcaNNGlZyAnzig,606
8
8
  pypilecore/input/grouper_properties.py,sha256=AqZHvg-CXcoTW7u9wgyqSm1oZLBc7sSoTawxGK69144,10895
9
- pypilecore/input/multi_cpt.py,sha256=ksXwMzY1KeSyWeeyiCkJVMilIWxAS45XwKXaS_uEQAE,19086
9
+ pypilecore/input/multi_cpt.py,sha256=1gEK-Imdhr0xOfcn50lq1OwYvjFs2NMf51LDaVddGas,19539
10
10
  pypilecore/input/pile_properties.py,sha256=mK8_VRy-tHZCKFHcv8ftMlCEs8KEsZpG9eGLq13hYPA,8400
11
- pypilecore/input/soil_properties.py,sha256=6JIy5CHXReKZNrsB0m-ehJKUM97t-GBO04MG9QyHXMM,6962
11
+ pypilecore/input/soil_properties.py,sha256=SL9aJ9IiVx00YjBu-hzAAIpbPZgTLpSNGnfphUVZjKQ,7659
12
12
  pypilecore/results/__init__.py,sha256=ggTI2QzILhX_oNx1YMOih6IVCkBFg8I5-Jyn9Sw3_h0,389
13
13
  pypilecore/results/grouper_result.py,sha256=XzrvsWezFB0ZXmIfC_Foy9oxqOqttRLDAxTa7eve1rc,21066
14
14
  pypilecore/results/load_settlement.py,sha256=EbfTrSvH_g96KE-x8ZjmO8D0mt5KFaQ_-AR8u4blLsU,9752
@@ -16,8 +16,8 @@ pypilecore/results/multi_cpt_results.py,sha256=_5cXM3lWFobfG3w6a6h5e5MQVdP6lgmca
16
16
  pypilecore/results/pile_properties.py,sha256=z1R5UNoYjBem2rS8LMJ_ye2J5ejDoSilU5fCjUrNdUg,28592
17
17
  pypilecore/results/single_cpt_results.py,sha256=eFeqMOOhgiQimv9EHFFWPFWWZWV_iYcqhXU39jSreF4,19358
18
18
  pypilecore/results/soil_properties.py,sha256=oZYTKSXP5UgxY2vwX-bu_X447KLptuYPpsgFi_E00IQ,20704
19
- py_pilecore-0.3.0.dist-info/LICENSE,sha256=3OCAZXffN0Bettjeya8uF_ZYegyvvCfH1WUt6CrHb_0,1061
20
- py_pilecore-0.3.0.dist-info/METADATA,sha256=pWc63xom63zwZkpcMMAJDrLzhChCP966t5ziLC33gkA,5806
21
- py_pilecore-0.3.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
22
- py_pilecore-0.3.0.dist-info/top_level.txt,sha256=7BKIWZuSkbQtJ0ho5P1JvcaEbHzqADCcBuOduZmIaiI,11
23
- py_pilecore-0.3.0.dist-info/RECORD,,
19
+ py_pilecore-0.3.1.dist-info/LICENSE,sha256=3OCAZXffN0Bettjeya8uF_ZYegyvvCfH1WUt6CrHb_0,1061
20
+ py_pilecore-0.3.1.dist-info/METADATA,sha256=TaAuonuIG1bDL4r4IqC8cDweFcnmGK-Ar-Pq-WGxsWA,5806
21
+ py_pilecore-0.3.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
22
+ py_pilecore-0.3.1.dist-info/top_level.txt,sha256=7BKIWZuSkbQtJ0ho5P1JvcaEbHzqADCcBuOduZmIaiI,11
23
+ py_pilecore-0.3.1.dist-info/RECORD,,
pypilecore/_version.py CHANGED
@@ -4,4 +4,4 @@ try:
4
4
  __version__ = version("py-pilecore")
5
5
  # during CI
6
6
  except PackageNotFoundError:
7
- __version__ = "0.3.0"
7
+ __version__ = "0.3.1"
@@ -24,6 +24,7 @@ def create_multi_cpt_payload(
24
24
  ] = "lower_bound",
25
25
  stiff_construction: bool = False,
26
26
  cpts_group: List[str] | None = None,
27
+ ocr: float | None = None,
27
28
  fixed_negative_friction_range_nap: Tuple[float, float] | None = None,
28
29
  fixed_positive_friction_range_nap: Tuple[float, Literal["ptl"] | float]
29
30
  | None = None,
@@ -41,6 +42,7 @@ def create_multi_cpt_payload(
41
42
  str, Tuple[float, Literal["ptl"] | float]
42
43
  ]
43
44
  | None = None,
45
+ individual_ocr: Mapping[str, float] | None = None,
44
46
  diameter_base: float | None = None,
45
47
  diameter_shaft: float | None = None,
46
48
  width_base_large: float | None = None,
@@ -129,6 +131,8 @@ def create_multi_cpt_payload(
129
131
  cpts_group:
130
132
  CPTs that are considered one group. Items must relate to the alias of the CPTData
131
133
  objects in `cptdata_objects`.
134
+ ocr:
135
+ The Over-Consolidation-Ratio [-] of the foundation layer.
132
136
  fixed_negative_friction_range_nap:
133
137
  Optionally sets the fixed depth range between which the negative sleeve friction
134
138
  is calculated. If an array of format [top, bottom], the range is set between top
@@ -189,6 +193,10 @@ def create_multi_cpt_payload(
189
193
  individual_positive_friction_range_nap:
190
194
  A dictionary, mapping ``CPTData.alias`` values to fixed positive-friction ranges.
191
195
  For a specification of the values, see ``fixed_positive_friction_range_nap``
196
+ individual_ocr:
197
+ A dictionary, mapping ``CPTData.alias`` values to Over-Consolidation-Ratio [-]
198
+ values of the foundation layer. This will overrule the general `ocr` setting for
199
+ these specific CPTs only.
192
200
  diameter_base:
193
201
  Pile base diameter [m].
194
202
  Only relevant if ``pile_shape`` = "round".
@@ -299,8 +307,10 @@ def create_multi_cpt_payload(
299
307
  groundwater_level_nap=groundwater_level_nap,
300
308
  friction_range_strategy=friction_range_strategy,
301
309
  excavation_depth_nap=excavation_depth_nap,
310
+ master_ocr=ocr,
302
311
  individual_negative_friction_range_nap=individual_negative_friction_range_nap,
303
312
  individual_positive_friction_range_nap=individual_positive_friction_range_nap,
313
+ individual_ocr=individual_ocr,
304
314
  )
305
315
  pile_properties = create_pile_properties_payload(
306
316
  pile_type=pile_type,
@@ -15,10 +15,6 @@ transform = {
15
15
  "peat": "V",
16
16
  }
17
17
 
18
- # Create input_table
19
- results_passover = {}
20
- soil_properties_list = []
21
-
22
18
 
23
19
  def create_soil_properties_payload(
24
20
  cptdata_objects: List[CPTData],
@@ -26,12 +22,14 @@ def create_soil_properties_payload(
26
22
  groundwater_level_nap: float,
27
23
  friction_range_strategy: Literal["manual", "lower_bound", "settlement_driven"],
28
24
  excavation_depth_nap: float | None = None,
25
+ master_ocr: float | None = None,
29
26
  individual_negative_friction_range_nap: Mapping[Any, Tuple[float, float]]
30
27
  | None = None,
31
28
  individual_positive_friction_range_nap: Mapping[
32
29
  Any, Tuple[float, Literal["ptl"] | float]
33
30
  ]
34
31
  | None = None,
32
+ individual_ocr: Mapping[Any, float] | None = None,
35
33
  ) -> Tuple[List[dict], Dict[str, dict]]:
36
34
  """
37
35
  Creates a dictionary with the `soil_properties` payload content for the PileCore
@@ -79,12 +77,18 @@ def create_soil_properties_payload(
79
77
  "lower_bound" or "settlement_driven".
80
78
  excavation_depth_nap:
81
79
  Soil excavation depth after the CPT was taken. Unit: [m] w.r.t. NAP.
80
+ ocr:
81
+ The Over-Consolidation-Ratio [-] of the foundation layer.
82
82
  individual_negative_friction_range_nap:
83
83
  A dictionary, mapping `CPTData.alias` values to fixed negative-friction ranges.
84
84
  For a specification of the values, see `fixed_negative_friction_range_nap`
85
85
  individual_positive_friction_range_nap:
86
86
  A dictionary, mapping `CPTData.alias` values to fixed positive-friction ranges.
87
87
  For a specification of the values, see `fixed_positive_friction_range_nap`
88
+ individual_ocr:
89
+ A dictionary, mapping ``CPTData.alias`` values to Over-Consolidation-Ratio [-]
90
+ values of the foundation layer. This will overrule the general `ocr` setting for
91
+ these specific CPTs only.
88
92
 
89
93
  Returns
90
94
  -------
@@ -95,6 +99,10 @@ def create_soil_properties_payload(
95
99
  Dictionary with keyword arguments for the `pilecore.MultiCPTBearingResults`
96
100
  object.
97
101
  """
102
+ # Initialize outputs
103
+ results_passover = {}
104
+ soil_properties_list = []
105
+
98
106
  for cpt in tqdm(cptdata_objects, desc="Create soil properties payload"):
99
107
  # Construct the cpt_data payload
100
108
  cpt_data = dict(
@@ -158,6 +166,14 @@ def create_soil_properties_payload(
158
166
  "fixed_positive_friction_range_nap"
159
167
  ] = individual_positive_friction_range_nap[cpt.alias]
160
168
 
169
+ # Optionally add OCR parameter
170
+ if individual_ocr is not None and cpt.alias in individual_ocr.keys():
171
+ ocr: float | None = individual_ocr[cpt.alias]
172
+ else:
173
+ ocr = master_ocr
174
+ if ocr is not None:
175
+ soil_properties["ocr"] = ocr
176
+
161
177
  soil_properties_list.append(soil_properties)
162
178
  results_passover[cpt.alias] = {
163
179
  "ref_height": cpt.delivered_vertical_position_offset,