Private
Public Access
1
0

Merge branch 'hotfix/v7.07'

This commit is contained in:
Sander Roosendaal
2018-06-27 21:12:56 +02:00

View File

@@ -1037,7 +1037,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
hr=hr,
pace=p * 1e3,
spm=spm,
velo=velo,
# velo=velo,
cumdist=cumdist,
ftime=niceformat(t2),
fpace=nicepaceformat(p2),
@@ -1051,7 +1051,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
distance=distance,
drivespeed=drivespeed,
rhythm=rhythm,
distanceperstroke=distanceperstroke,
# distanceperstroke=distanceperstroke,
)
)
@@ -1224,40 +1224,6 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
# write data if id given
if id != 0:
data['workoutid'] = id
data = data[['averageforce',
'cumdist',
'distance',
'distanceperstroke',
'driveenergy',
'drivelength',
'drivespeed',
'forceratio',
'fpace',
'ftime',
'hr',
'pace',
'peakforce',
'power',
'spm',
'time',
'velo',
'workoutstate',
'x_right',
'wash',
'catch',
'slip',
'finish',
'peakforceangle',
'totalangle',
'effectiveangle',
'efficiency',
'ergpace',
'nowindpace',
'equivergpower',
'fergpace',
'fnowindpace',
'workoutid']]
if debug:
engine = create_engine(database_url_debug, echo=False)