Private
Public Access
1
0

small impro

This commit is contained in:
Sander Roosendaal
2021-06-01 14:06:53 +02:00
parent 09a0cd896e
commit bb227919a3
2 changed files with 2 additions and 1 deletions

View File

@@ -6607,7 +6607,7 @@ def get_zones_report(rower,startdate,enddate,trainingzones='hr'):
df = dataprep.getsmallrowdata_db(columns,ids=ids)
try:
df['deltat'] = df['time'].diff().clip(lower=0)
df['deltat'] = df['time'].diff().clip(lower=0).clip(upper=20*1e3)
except KeyError: # pragma: no cover
pass

View File

@@ -341,6 +341,7 @@ color_map = {
'c-boat': 'lightsteelblue', #'#ffbb78',
'churchboat': 'midnightblue', #'#17becf',
'Ride': 'hotpink', #'#3182bd',
'Bike': 'deeppink',
'bike': 'deeppink', #'#e6550d',
'Run': 'green', #'#ff9896',
'NordicSki': 'lightgray', #'#74c476',