bug fix divide zero
This commit is contained in:
@@ -72,7 +72,7 @@ def cpfit(powerdf):
|
||||
frac = abs(ddmin)/fitpoints.mean()
|
||||
|
||||
ratio = fitpoints.mean()/fitpoints0.mean()
|
||||
|
||||
|
||||
return p1,fitt,fitpower,ratio
|
||||
|
||||
def getlogarr(maxt):
|
||||
@@ -180,7 +180,7 @@ def getmaxwattinterval(tt,ww,i):
|
||||
if testres:
|
||||
deltat = 1.0e-3*(t_0-t_1)
|
||||
wmax = w_roll.ix[indexmax]
|
||||
if wmax > 800 or wmax > 800/(5.0e04*deltat):
|
||||
if wmax > 800 or wmax*5.0e-4*deltat > 800.0:
|
||||
wmax = 0
|
||||
else:
|
||||
wmax = 0
|
||||
|
||||
Reference in New Issue
Block a user