Commit 9cc2bf79 authored by chad.hanna's avatar chad.hanna

plotfar.py: fix ValueError for misssing instrument

parent 5e1b79bb
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment