replaced copyfile with copy in tests
This commit is contained in:
@@ -304,14 +304,15 @@ def getmaxwattinterval(tt,ww,i):
|
||||
if len(w_roll):
|
||||
# now goes with # data points - should be fixed seconds
|
||||
indexmax = w_roll.idxmax(axis=1)
|
||||
indexmaxpos = indexmax.get_loc(indexmax)
|
||||
try:
|
||||
t_0 = tt.ix[indexmax]
|
||||
t_1 = tt.ix[indexmax-i]
|
||||
deltas = tt.ix[indexmax-i:indexmax].diff().dropna()
|
||||
t_0 = tt.iloc[indexmaxpos]
|
||||
t_1 = tt.iloc[indexmaxpos-i]
|
||||
deltas = tt.iloc[indexmaxpos-i:indexmaxpos].diff().dropna()
|
||||
testres = 1.0e-3*deltas.max() < 30.
|
||||
if testres:
|
||||
deltat = 1.0e-3*(t_0-t_1)
|
||||
wmax = w_roll.ix[indexmax]
|
||||
wmax = w_roll.iloc[indexmaxpos]
|
||||
#if wmax > 800 or wmax*5.0e-4*deltat > 800.0:
|
||||
# wmax = 0
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user