Merge tag 'v7.31' into develop
bug fix
This commit is contained in:
@@ -220,10 +220,17 @@ def summaryfromsplitdata(splitdata,data,filename,sep='|'):
|
|||||||
velo = totaldist/totaltime
|
velo = totaldist/totaltime
|
||||||
avgpower = 2.8*velo**(3.0)
|
avgpower = 2.8*velo**(3.0)
|
||||||
|
|
||||||
|
try:
|
||||||
restvelo = restdistance/resttime
|
restvelo = restdistance/resttime
|
||||||
|
except (ZeroDivisionError,OverflowError):
|
||||||
|
restvelo = 0
|
||||||
|
|
||||||
restpower = 2.8*restvelo**(3.0)
|
restpower = 2.8*restvelo**(3.0)
|
||||||
|
|
||||||
|
try:
|
||||||
avgdps = totaldist/data['stroke_count']
|
avgdps = totaldist/data['stroke_count']
|
||||||
|
except (ZeroDivisionError,OverflowError,KeyError):
|
||||||
|
avgdps = 0
|
||||||
|
|
||||||
from rowingdata import summarystring,workstring,interval_string
|
from rowingdata import summarystring,workstring,interval_string
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user