Merge branch 'feature/cpchart' into develop
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user