added pace clipping to C2 import
This commit is contained in:
@@ -369,6 +369,8 @@ def add_workout_from_strokedata(user,importid,data,strokedata,
|
||||
spm = strokedata.ix[:,'spm']
|
||||
hr = strokedata.ix[:,'hr']
|
||||
pace = strokedata.ix[:,'p']/10.
|
||||
pace = np.clip(pace,0,1e4)
|
||||
pace = pace.replace(0,300)
|
||||
|
||||
velo = 500./pace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user