We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7282de commit f55b04cCopy full SHA for f55b04c
1 file changed
activity_browser/bwutils/sensitivity_analysis.py
@@ -15,6 +15,12 @@
15
import pandas as pd
16
from SALib.analyze import delta
17
18
+# SALib>=1.5 can call `numpy.trapezoid`, which is only available in NumPy 2.x.
19
+# Keep compatibility with NumPy 1.x environments by aliasing to `trapz`.
20
+# Can be removed when we move to numpy>1
21
+if not hasattr(np, "trapezoid"):
22
+ np.trapezoid = np.trapz
23
+
24
from activity_browser.mod import bw2data as bd
25
26
from ..settings import ab_settings
0 commit comments