Skip to content

Commit 4e55cb1

Browse files
Julien76Julien Hericher
andauthored
fix interpolation mode for u0 (#4)
Co-authored-by: Julien Hericher <[email protected]>
1 parent 3b50542 commit 4e55cb1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changes
22

3+
## Version 0.1.7:
4+
5+
**date: 2024-09-26**
6+
7+
- fix wrong interpolation mode set for u0.
8+
39
## Version 0.1.6:
410

511
**date: 2024-09-26**

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ngi-calculations"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
description = "CPT correlations including commonly used empirical correlations"
55
authors = [
66
"Julien Hericher <[email protected]>",

src/ngi_calculations/cpt_correlations/methods/cpt_process/calculations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _integrate_lab_profile(self):
175175
)
176176

177177
# Handle u0 differently as it should always be interpolated linearly
178-
_df = interpolate_missing_values(_df, key_col=depth, col_list=["u0"], mode=self.options.interpolation_mode)
178+
_df = interpolate_missing_values(_df, key_col=depth, col_list=["u0"], mode="linear")
179179

180180
# # Prevent values for certain lab profiles to go below zero
181181
# _df[GEO.u0.key] = _df[GEO.u0.key].clip(lower=0.0)

0 commit comments

Comments
 (0)