From dec5c19a52ad60b27348f77afe1e38ed9cb7049f Mon Sep 17 00:00:00 2001 From: ETVincent <98178306+ETVincent@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:16:24 -0400 Subject: [PATCH] Update pycbc_pygrb_plot_stats_distribution (#4538) Updated to match old stats_dist branch. Co-authored-by: Francesco Pannarale --- bin/pygrb/pycbc_pygrb_plot_stats_distribution | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/pygrb/pycbc_pygrb_plot_stats_distribution b/bin/pygrb/pycbc_pygrb_plot_stats_distribution index e56dc6584d5..e36ce7ab1b1 100644 --- a/bin/pygrb/pycbc_pygrb_plot_stats_distribution +++ b/bin/pygrb/pycbc_pygrb_plot_stats_distribution @@ -34,10 +34,6 @@ import pycbc.version from pycbc import init_logging from pycbc.results import save_fig_with_metadata from pycbc.results import pygrb_postprocessing_utils as ppu -try: - from glue.ligolw import lsctables -except ImportError: - pass plt.switch_backend('Agg') rc("image", cmap="cividis_r") @@ -86,8 +82,8 @@ ifos, vetoes = ppu.extract_ifos_and_vetoes(trig_file, opts.veto_files, # Load triggers, time-slides, and segment dictionary logging.info("Loading triggers.") -trigs = ppu.load_xml_table(trig_file, lsctables.MultiInspiralTable.tableName) -logging.info("%d triggers loaded.", len(trigs)) +trigs = ppu.load_triggers(trig_file, vetoes) +logging.info("%d triggers loaded.", trigs['network/event_id'].len()) logging.info("Loading timeslides.") slide_dict = ppu.load_time_slides(trig_file) logging.info("Loading segments.")