Skip to content

Commit

Permalink
Update pycbc_pygrb_plot_injs_results
Browse files Browse the repository at this point in the history
Applying reweighted SNR cut to found injections also to the key storing reweighted SNR itself!
  • Loading branch information
pannarale authored Jan 24, 2025
1 parent e693aa3 commit f3b926a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/pygrb/pycbc_pygrb_plot_injs_results
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f3b926a

Please sign in to comment.