Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-09-13 09:01:41 +02:00
parent 951b6a3f65
commit 05a99fcaf7
2 changed files with 3 additions and 1 deletions

View File

@@ -1320,7 +1320,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
tf = TimezoneFinder()
try:
timezone_str = tf.timezone_at(lng=lonavg, lat=latavg)
except ValueError:
except (ValueError,OverflowError):
timezone_str = 'UTC'
if timezone_str == None:
timezone_str = tf.closest_timezone_at(lng=lonavg,

View File

@@ -420,6 +420,8 @@ def handle_check_race_course(self,
rowdata['dt'] = rowdata['time'].apply(
lambda x: safetimedelta(x)
)
rowdata = rowdata.resample('100ms',on='dt').mean()
rowdata = rowdata.interpolate()