From 940a9cbac1421e3f6f131bb16e6205bc54ca9fb2 Mon Sep 17 00:00:00 2001 From: "chad.hanna" <crh184@psu.edu> Date: Wed, 27 Mar 2019 11:29:29 -0700 Subject: [PATCH] plotfar.py: fix ValueError for misssing instrument --- gstlal-inspiral/python/plotfar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gstlal-inspiral/python/plotfar.py b/gstlal-inspiral/python/plotfar.py index d7e9beba8a..80005a4d5d 100644 --- a/gstlal-inspiral/python/plotfar.py +++ b/gstlal-inspiral/python/plotfar.py @@ -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: -- GitLab