Skip to content
Snippets Groups Projects
Commit 940a9cba authored by chad.hanna's avatar chad.hanna
Browse files

plotfar.py: fix ValueError for misssing instrument

parent 998b9d3b
No related branches found
No related tags found
No related merge requests found
......@@ -417,7 +417,10 @@ def plot_horizon_distance_vs_time(rankingstat, (tlo, thi), masses = (1.4, 1.4),
if tref is not None:
x -= float(tref)
axes.plot(x, y, color = plotutil.colour_from_instruments([instrument]), label = "%s" % instrument)
yhi = max(max(y), yhi)
try:
yhi = max(max(y), yhi)
except ValueError:
pass
if tref is not None:
axes.set_xlabel("Time From GPS %.2f (s)" % float(tref))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment