finding source of unnecessary notifications
This commit is contained in:
@@ -118,6 +118,8 @@ def getcp(dfgrouped,logarr):
|
||||
ww = group['power'].copy()
|
||||
|
||||
tmax = tt.max()
|
||||
|
||||
|
||||
if tmax > 500000:
|
||||
newlen = int(tmax/2000.)
|
||||
else:
|
||||
@@ -143,6 +145,7 @@ def getcp(dfgrouped,logarr):
|
||||
cpw = []
|
||||
for i in xrange(length-2):
|
||||
deltat,wmax = getmaxwattinterval(tt,ww,i)
|
||||
|
||||
if not np.isnan(deltat) and not np.isnan(wmax):
|
||||
dt.append(deltat)
|
||||
cpw.append(wmax)
|
||||
@@ -165,6 +168,7 @@ def getcp(dfgrouped,logarr):
|
||||
delta = pd.Series(delta,name='Delta')
|
||||
cpvalue = pd.Series(cpvalue,name='CP')
|
||||
|
||||
|
||||
cpdf = pd.DataFrame({
|
||||
'delta':delta,
|
||||
'cpvalue':cpvalue
|
||||
|
||||
Reference in New Issue
Block a user