From 76b7ce4f32f6e4d42444cc18f53237fa51ae3e29 Mon Sep 17 00:00:00 2001 From: Kipp Cannon <kipp.cannon@ligo.org> Date: Mon, 14 Aug 2017 20:15:32 +0900 Subject: [PATCH] plotfar.py: don't try to plot Virgo PDFs - temporary hack, remove after O2 --- gstlal-inspiral/python/plotfar.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gstlal-inspiral/python/plotfar.py b/gstlal-inspiral/python/plotfar.py index c64de3521c..1e111df9d6 100644 --- a/gstlal-inspiral/python/plotfar.py +++ b/gstlal-inspiral/python/plotfar.py @@ -220,6 +220,12 @@ def plot_snr_joint_pdf(snrpdf, instruments, horizon_distances, min_instruments, if len(instruments) < 1: raise ValueError("len(instruments) must be >= 1") + # FIXME: don't try to plot Virgo stuff. remove after O2 + instruments = set(instruments) - set(["V1"]) + if sngls is not None: + for d in sngls: + d.pop("V1", None) + # retrieve the PDF in binned array form (not the interpolator) binnedarray = snrpdf.get_snr_joint_pdf_binnedarray(instruments, horizon_distances, min_instruments) -- GitLab