bike erg export to C2
This commit is contained in:
@@ -394,6 +394,8 @@ def createc2workoutdata(w):
|
||||
d[0] = d[1]
|
||||
p = abs(10*row.df.ix[:,' Stroke500mPace (sec/500m)'].values)
|
||||
p = np.clip(p,0,3600)
|
||||
if w.workouttype == 'bike':
|
||||
p = 2.0*p
|
||||
t = t.astype(int)
|
||||
d = d.astype(int)
|
||||
p = p.astype(int)
|
||||
@@ -834,6 +836,7 @@ def add_workout_from_data(user,importid,data,strokedata,
|
||||
velo = 500./pace
|
||||
if workouttype == 'bike':
|
||||
velo = 1000./pace
|
||||
pace = 500./velo
|
||||
|
||||
power = 2.8*velo**3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user