Private
Public Access
1
0

Merge branch 'develop' into bugfix/stats

This commit is contained in:
Sander Roosendaal
2018-07-12 15:12:18 +02:00

View File

@@ -220,11 +220,18 @@ def summaryfromsplitdata(splitdata,data,filename,sep='|'):
velo = totaldist/totaltime
avgpower = 2.8*velo**(3.0)
restvelo = restdistance/resttime
try:
restvelo = restdistance/resttime
except (ZeroDivisionError,OverflowError):
restvelo = 0
restpower = 2.8*restvelo**(3.0)
avgdps = totaldist/data['stroke_count']
try:
avgdps = totaldist/data['stroke_count']
except (ZeroDivisionError,OverflowError,KeyError):
avgdps = 0
from rowingdata import summarystring,workstring,interval_string