Private
Public Access
1
0

checking for isfinite in normw, normv calc

This commit is contained in:
Sander Roosendaal
2018-07-10 14:56:31 +02:00
parent 08ca7539f2
commit c5b0351153

View File

@@ -619,10 +619,10 @@ def handle_calctrimp(id,
normw = 0
if np.isnan(normv):
if not np.isfinite(normv):
normv = 500./120.
if np.isnan(normw):
if not np.isfinite(normw):
normw = 0
query = 'UPDATE rowers_workout SET rscore = {tss}, normp = {normp}, trimp={trimp}, hrtss={hrtss}, normv={normv}, normw={normw} WHERE id={id}'.format(