Skip to content

Commit

Permalink
Dashboard: Ignore redundant plot points
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jul 26, 2019
1 parent 44e896e commit 94bf1de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/dashboard/generate_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,10 @@ def gen_plots(archive_reports, log, outdir, full_archive):
raw_output += "%8d %40s"%(-age, report['git-sha'])
for pname, cname in tags:
pp = [pp for pp in report['plotpoints'] if(pp['plot']==pname and pp['name']==cname)]
assert(len(pp)<=1)
if len(pp) > 1:
print("Warning: Found redundant plot points.")
if(pp):
raw_output += " %18f %22f"%(pp[0]['y'],pp[0]['yerr'])
raw_output += " %18f %22f"%(pp[-1]['y'],pp[-1]['yerr'])
else:
raw_output += " %18s %22s"%("?","?")
raw_output += "\n"
Expand Down

0 comments on commit 94bf1de

Please sign in to comment.