Private
Public Access
1
0

bug fix getmaxwattinterval

This commit is contained in:
Sander Roosendaal
2018-03-12 13:01:22 +01:00
parent 53de235886
commit dc42b3fe28

View File

@@ -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)