Merge branch 'release/v11.21'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user