additional OTE/OTW check
This commit is contained in:
@@ -1128,6 +1128,13 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
|||||||
if row == 0:
|
if row == 0:
|
||||||
return (0, 'Error: CSV data file not found')
|
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:
|
if dosmooth:
|
||||||
# auto smoothing
|
# auto smoothing
|
||||||
pace = row.df[' Stroke500mPace (sec/500m)'].values
|
pace = row.df[' Stroke500mPace (sec/500m)'].values
|
||||||
|
|||||||
Reference in New Issue
Block a user