Private
Public Access
1
0

finding source of unnecessary notifications

This commit is contained in:
Sander Roosendaal
2017-07-04 22:26:44 +02:00
parent 6b5904ecf7
commit c75a169229
7 changed files with 39 additions and 34 deletions

View File

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