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