Private
Public Access
1
0

initial implementation

This commit is contained in:
Sander Roosendaal
2018-08-27 15:27:01 +02:00
parent 5243bb4016
commit d85b9ac7f2
2 changed files with 3 additions and 0 deletions

View File

@@ -871,6 +871,8 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
# auto smoothing
pace = row.df[' Stroke500mPace (sec/500m)'].values
velo = 500. / pace
if workouttype == 'bikeerg':
velo = 1000. / pace
f = row.df['TimeStamp (sec)'].diff().mean()
if f != 0 and not np.isnan(f):

View File

@@ -2,6 +2,7 @@ workouttypes = (
('water','Standard Racing Shell'),
('rower','Indoor Rower'),
('skierg','Ski Erg'),
('bikeerg','Bike Erg'),
('dynamic','Dynamic Indoor Rower'),
('slides','Indoor Rower on Slides'),
('paddle','Paddle Adapter'),