Private
Public Access
1
0

Added adaptation of p values on breakthrough workouts

This commit is contained in:
Sander Roosendaal
2017-06-18 14:09:20 +02:00
parent a73ea9d0be
commit b4c69c3df1
2 changed files with 30 additions and 0 deletions

View File

@@ -430,6 +430,7 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
delta,cpvalues,avgpower = datautils.getsinglecp(row.df)
if utils.isbreakthrough(delta,cpvalues,r.p0,r.p1,r.p2,r.p3):
isbreakthrough = True
res = datautils.updatecp(delta,cpvalues,r)
dtavg = row.df['TimeStamp (sec)'].diff().mean()