Private
Public Access
1
0

adding test duration

This commit is contained in:
Sander Roosendaal
2020-12-07 15:00:27 +01:00
parent 6426f8513d
commit 5df1a2272a
2 changed files with 30 additions and 11 deletions

View File

@@ -377,6 +377,8 @@ def wavg(group, avg_name, weight_name):
return d.mean()
def totaltime_sec_to_string(totaltime,shorten=False):
if np.isnan(totaltime):
return ''
hours = int(totaltime / 3600.)
if hours > 23:
message = 'Warning: The workout duration was longer than 23 hours. '