Private
Public Access
1
0

added pace clipping to C2 import

This commit is contained in:
Sander Roosendaal
2017-01-16 20:50:54 +01:00
parent b0507b8001
commit c380804d08

View File

@@ -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