bug fix
This commit is contained in:
@@ -634,8 +634,12 @@ def createc2workoutdata(w):
|
|||||||
for i in range(nrintervals):
|
for i in range(nrintervals):
|
||||||
if itime[i]>0:
|
if itime[i]>0:
|
||||||
mask = (row.df[' lapIdx'] == lapnames[i]) & (row.df[' WorkoutState'] == itype[i])
|
mask = (row.df[' lapIdx'] == lapnames[i]) & (row.df[' WorkoutState'] == itype[i])
|
||||||
spmav = int(row.df[' Cadence (stokes/min)'][mask].mean().astype(int))
|
try:
|
||||||
hrav = int(row.df[' HRCur (bpm)'][mask].mean().astype(int))
|
spmav = int(row.df[' Cadence (stokes/min)'][mask].mean().astype(int))
|
||||||
|
hrav = int(row.df[' HRCur (bpm)'][mask].mean().astype(int))
|
||||||
|
except AttributeError:
|
||||||
|
spmav = int(row.df[' Cadence (stokes/min)'][mask].mean())
|
||||||
|
hrav = int(row.df[' HRCur (bpm)'][mask].mean())
|
||||||
intervaldict = {
|
intervaldict = {
|
||||||
'type': 'distance',
|
'type': 'distance',
|
||||||
'time': int(10*itime[i]),
|
'time': int(10*itime[i]),
|
||||||
|
|||||||
Reference in New Issue
Block a user