Private
Public Access
1
0

initial solution to #70

This commit is contained in:
Sander Roosendaal
2019-07-24 15:23:53 +02:00
parent da6934ec0c
commit 6b9f41fca6
4 changed files with 23 additions and 8 deletions

View File

@@ -2208,6 +2208,9 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True,
else:
drivenergy = drivelength * averageforce
powerhr = power/hr
powerhr = powerhr.fillna(value=0)
if driveenergy.mean() == 0 and driveenergy.std() == 0:
driveenergy = 0*driveenergy+100
@@ -2237,6 +2240,7 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True,
drivespeed=drivespeed,
rhythm=rhythm,
distanceperstroke=distanceperstroke,
powerhr=powerhr,
)
)