Skip to content

Commit 0274acd

Browse files
implementing comments by Sarah Huelsen
1 parent 9939d63 commit 0274acd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

climada/util/interpolation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
---
1818
19-
define fit functionalities for (local) exceedance frequencies and return periods
19+
Define interpolation and extrapolation functions for calculating (local) exceedance frequencies and return periods
2020
"""
2121

2222

@@ -53,9 +53,9 @@ def interpolate_ev(
5353
y_train : array_like
5454
1-D array of y-values of training data
5555
logx : bool, optional
56-
If set to True, x_values are convert to log scale. Defaults to False.
56+
If set to True, x_values are converted to log scale. Defaults to False.
5757
logy : bool, optional
58-
If set to True, x_values are convert to log scale. Defaults to False.
58+
If set to True, y_values are converted to log scale. Defaults to False.
5959
x_threshold : float, optional
6060
Lower threshold to filter x_train. Defaults to None.
6161
y_threshold : float, optional
@@ -146,7 +146,7 @@ def stepfunction_ev(
146146
if x_train.size < 2:
147147
return _interpolate_small_input(x_test, x_train, y_train, None, y_asymptotic)
148148

149-
# find indeces of x_test if sorted into x_train
149+
# find indices of x_test if sorted into x_train
150150
if not all(sorted(x_train) == x_train):
151151
raise ValueError('Input array x_train must be sorted in ascending order.')
152152
indx = np.searchsorted(x_train, x_test)

0 commit comments

Comments
 (0)