From f3b926a829e8ea2b021de39197ee846558adc939 Mon Sep 17 00:00:00 2001 From: Francesco Pannarale Date: Fri, 24 Jan 2025 15:49:11 +0100 Subject: [PATCH] Update pycbc_pygrb_plot_injs_results Applying reweighted SNR cut to found injections also to the key storing reweighted SNR itself! --- bin/pygrb/pycbc_pygrb_plot_injs_results | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/pygrb/pycbc_pygrb_plot_injs_results b/bin/pygrb/pycbc_pygrb_plot_injs_results index e44c56acecd..47635ce22b0 100644 --- a/bin/pygrb/pycbc_pygrb_plot_injs_results +++ b/bin/pygrb/pycbc_pygrb_plot_injs_results @@ -309,6 +309,7 @@ if opts.newsnr_threshold: found_inj[key] = found_inj[key][~rw_snr_cut] for ifo in ifos: found_inj[ifo+'/end_time'] = found_inj[ifo+'/end_time'][~rw_snr_cut] + found_inj['reweighted_snr'] = found_inj['reweighted_snr'][~rw_snr_cut] msg = f"After applying reweighted SNR cut at {opts.newsnr_threshold}: " msg += f"{len(found_inj[x_qty])} found injections and " msg += f"{len(missed_inj[x_qty])} missed injections"