Skip to content

Commit 02c20ca

Browse files
Merge branch 'feature/interpolate_exceedance' of github.com:CLIMADA-project/climada_python into feature/interpolate_exceedance
2 parents 867a80f + 89c3ddd commit 02c20ca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

climada/engine/impact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ def extrapolate(
23092309
----------
23102310
return_period : Iterable[float]
23112311
return periods for which to evaluate the impact frequency curve
2312-
axis to use
2312+
23132313
method : str, optional
23142314
Method to interpolate to new return periods. Currently available are "interpolate",
23152315
"extrapolate", "extrapolate_constant" and "stepfunction". If set to "interpolate",
@@ -2460,7 +2460,7 @@ def plot_extrapolate(
24602460
self.label,
24612461
**kwargs,
24622462
)
2463-
# axis = self._plot(self.return_per, self.evaluate(self.return_per, **(kwargs_interp|{"method": "interpolate"})), axis, log_frequency, self.frequency_unit, self.unit, self.label, **kwargs)
2463+
24642464
for rp in [min(self.return_per), max(self.return_per)]:
24652465
axis.axvline(x=1 / rp if log_frequency else rp, linestyle="--", c="gray")
24662466

climada/util/interpolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def preprocess_and_interpolate_ev(
5151
assigned. If given, test_values must be None.
5252
test_values : array_like
5353
1-D array of test values (e.g., intensities or impacts) for which exceedance frequencies should be
54-
assigned. If given, test_frequency must be None.
54+
assigned. If given, exceedance_frequency must be None.
5555
frequency : array_like
5656
1-D array of frequencies to be interpolated.
5757
values : array_like

0 commit comments

Comments
 (0)