Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-05-24 21:20:52 +02:00
parent 98a7267701
commit 72c4196bef

View File

@@ -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]),