Merge branch 'release/v3.22'
This commit is contained in:
@@ -175,8 +175,14 @@ def getmaxwattinterval(tt,ww,i):
|
|||||||
try:
|
try:
|
||||||
t_0 = tt.ix[indexmax]
|
t_0 = tt.ix[indexmax]
|
||||||
t_1 = tt.ix[indexmax-i]
|
t_1 = tt.ix[indexmax-i]
|
||||||
deltat = 1.0e-3*(t_0-t_1)
|
deltas = tt.ix[indexmax-1:indexmax].diff().dropna()
|
||||||
wmax = w_roll.ix[indexmax]
|
testres = 1.0e-3*deltas.max() < 30.
|
||||||
|
if testres:
|
||||||
|
deltat = 1.0e-3*(t_0-t_1)
|
||||||
|
wmax = w_roll.ix[indexmax]
|
||||||
|
else:
|
||||||
|
wmax = 0
|
||||||
|
deltat = 0
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user