Private
Public Access
1
0

Merge branch 'feature/cpchart' into develop

This commit is contained in:
Sander Roosendaal
2018-02-27 14:32:24 +01:00

View File

@@ -215,6 +215,14 @@ def getcp(dfgrouped,logarr):
tt = group['time'].copy()
ww = group['power'].copy()
# Remove data where PM is repeating final power value
# of an interval during the rest
rolling_std = ww.rolling(window=4).std()
deltas = tt.diff()
mask = rolling_std == 0
ww.loc[mask] = 0
tmax = tt.max()