Private
Public Access
1
0

upgrading static plots with flexible HR zone names

This commit is contained in:
Sander Roosendaal
2021-01-26 08:11:24 +01:00
parent fdd7622af4
commit 1ea99a8101
3 changed files with 10 additions and 4 deletions

View File

@@ -2123,13 +2123,15 @@ def handle_makeplot(f1, f2, t, hrdata, plotnr, imagename,
hran = hrdata['hran']
ftp = hrdata['ftp']
powerzones = deserialize_list(hrdata['powerzones'])
hrzones = deserialize_list(hrdata['hrzones'])
powerperc = np.array(deserialize_list(hrdata['powerperc'])).astype(float)
rr = rowingdata.rower(hrmax=hrmax, hrut2=hrut2,
hrut1=hrut1, hrat=hrat,
hrtr=hrtr, hran=hran,
ftp=ftp, powerperc=powerperc,
powerzones=powerzones)
powerzones=powerzones,
hrzones=hrzones)
try:
row = rdata(csvfile=f2, rower=rr)
except IOError: