checking for isfinite in normw, normv calc
This commit is contained in:
@@ -619,10 +619,10 @@ def handle_calctrimp(id,
|
|||||||
normw = 0
|
normw = 0
|
||||||
|
|
||||||
|
|
||||||
if np.isnan(normv):
|
if not np.isfinite(normv):
|
||||||
normv = 500./120.
|
normv = 500./120.
|
||||||
|
|
||||||
if np.isnan(normw):
|
if not np.isfinite(normw):
|
||||||
normw = 0
|
normw = 0
|
||||||
|
|
||||||
query = 'UPDATE rowers_workout SET rscore = {tss}, normp = {normp}, trimp={trimp}, hrtss={hrtss}, normv={normv}, normw={normw} WHERE id={id}'.format(
|
query = 'UPDATE rowers_workout SET rscore = {tss}, normp = {normp}, trimp={trimp}, hrtss={hrtss}, normv={normv}, normw={normw} WHERE id={id}'.format(
|
||||||
|
|||||||
Reference in New Issue
Block a user