Private
Public Access
1
0

using upper limit for OTW breakthrough detection

This commit is contained in:
Sander Roosendaal
2017-06-27 04:10:53 +02:00
parent a8b8083b0f
commit 0f71ee9481
9 changed files with 25 additions and 13 deletions

View File

@@ -428,7 +428,7 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
isbreakthrough = False
if workouttype == 'water':
delta,cpvalues,avgpower = datautils.getsinglecp(row.df)
if utils.isbreakthrough(delta,cpvalues,r.p0,r.p1,r.p2,r.p3):
if utils.isbreakthrough(delta,cpvalues,r.p0,r.p1,r.p2,r.p3,r.cpratio):
isbreakthrough = True
res = datautils.updatecp(delta,cpvalues,r)