Private
Public Access
1
0

Merge branch 'release/v11.21'

This commit is contained in:
Sander Roosendaal
2020-03-01 12:41:02 +01:00

View File

@@ -1128,6 +1128,13 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
if row == 0:
return (0, 'Error: CSV data file not found')
try:
lat = row.df[' latitude']
if lat.mean() != 0 and lat.std() != 0 and workouttype == 'rower':
workouttype = 'water'
except KeyError:
pass
if dosmooth:
# auto smoothing
pace = row.df[' Stroke500mPace (sec/500m)'].values