Skip to content

Commit

Permalink
Dashboard: Use latest plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed May 1, 2019
1 parent 3be28de commit c8c9127
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/dashboard/generate_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,19 +269,16 @@ def gen_plots(archive_reports, log, outdir, full_archive):
for report in ordered_reports:
for p in report['plots']:
if(p['name'] not in plots.keys()):
plots[p['name']] = {'curves': OrderedDict()}
plots[p['name']]['title'] = p['title'] # update title
plots[p['name']]['ylabel'] = p['ylabel'] # update label
plots[p['name']] = {'curves': OrderedDict(), 'title': p['title'], 'ylabel': p['ylabel']}
for pp in report['plotpoints']:
p = plots[pp['plot']]
if(pp['name'] not in p['curves'].keys()):
p['curves'][pp['name']] = {'x':[], 'y':[], 'yerr':[]}
p['curves'][pp['name']] = {'x':[], 'y':[], 'yerr':[], 'label': pp['label']}
c = p['curves'][pp['name']]
age = log.index[report['git-sha']]
c['x'].append(-age)
c['y'].append(pp['y'])
c['yerr'].append(pp['yerr'])
c['label'] = pp['label'] # update label

# write raw data
tags = sorted([(pname, cname) for pname, p in plots.items() for cname in p['curves'].keys()])
Expand Down

0 comments on commit c8c9127

Please sign in to comment.