Skip to content

Commit

Permalink
Update pycbc_pygrb_plot_stats_distribution (gwastro#4538)
Browse files Browse the repository at this point in the history
Updated to match old stats_dist branch.

Co-authored-by: Francesco Pannarale <[email protected]>
  • Loading branch information
ETVincent and pannarale authored Nov 2, 2023
1 parent 1fcb16c commit dec5c19
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/pygrb/pycbc_pygrb_plot_stats_distribution
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit dec5c19

Please sign in to comment.