Skip to content

Commit 5877964

Browse files
authored
Fix expired deprecation in scipy v1.14 (#455)
1 parent 8969e7b commit 5877964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pysteps/verification/lifetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from math import exp
2020
import numpy as np
21-
from scipy.integrate import simps
21+
from scipy.integrate import simpson
2222

2323

2424
def lifetime(X_s, X_t, rule="1/e"):
@@ -113,7 +113,7 @@ def lifetime_accum(lifetime, X_s, X_t):
113113
if lifetime["rule"] == "trapz":
114114
lf = np.trapz(X_s, x=X_t)
115115
elif lifetime["rule"] == "simpson":
116-
lf = simps(X_s, x=X_t)
116+
lf = simpson(X_s, x=X_t)
117117
elif lifetime["rule"] == "1/e":
118118
euler_number = 1.0 / exp(1.0)
119119
X_s_ = np.array(X_s)

0 commit comments

Comments
 (0)