bug fix getmaxwattinterval
This commit is contained in:
@@ -297,7 +297,7 @@ def getmaxwattinterval(tt,ww,i):
|
||||
try:
|
||||
t_0 = tt.ix[indexmax]
|
||||
t_1 = tt.ix[indexmax-i]
|
||||
deltas = tt.ix[indexmax-1:indexmax].diff().dropna()
|
||||
deltas = tt.ix[indexmax-i:indexmax].diff().dropna()
|
||||
testres = 1.0e-3*deltas.max() < 30.
|
||||
if testres:
|
||||
deltat = 1.0e-3*(t_0-t_1)
|
||||
|
||||
Reference in New Issue
Block a user