Private
Public Access
1
0

added isnan to f determination

This commit is contained in:
Sander Roosendaal
2017-04-21 08:52:39 +02:00
parent 8e60660a0c
commit 1d97b2ee88

View File

@@ -363,7 +363,7 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
velo = 500./pace
f = row.df['TimeStamp (sec)'].diff().mean()
if f !=0:
if f !=0 and not np.isnan(f):
windowsize = 2*(int(10./(f)))+1
else:
windowsize = 1