We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a32eef commit 53c9068Copy full SHA for 53c9068
pecos/metrics.py
@@ -94,7 +94,7 @@ def time_integral(data, tfilter=None):
94
where
95
:math:`f` is a column of data
96
:math:`dt` is the time step between observations.
97
- The integral is computed using the trapezoidal rule from numpy.trapz.
+ The integral is computed using the trapezoidal rule from numpy.trapezoid.
98
Results are given in [original data units]*seconds.
99
NaN values are set to 0 for integration.
100
@@ -124,7 +124,7 @@ def time_integral(data, tfilter=None):
124
125
F = {}
126
for col in data.columns:
127
- F[col] = float(np.trapz(data.loc[:,col], tdelta))
+ F[col] = float(np.trapezoid(data.loc[:,col], tdelta))
128
129
F = pd.Series(F)
130
0 commit comments