Skip to content

Commit

Permalink
remove removal of downranked triggers (#4579)
Browse files Browse the repository at this point in the history
* remove removal of downranked triggers

* add brief explanation into the caption
  • Loading branch information
GarethCabournDavies authored Dec 6, 2023
1 parent 0d8ae9e commit bc6e864
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions bin/minifollowups/pycbc_plot_trigger_timeseries
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,11 @@ for ifo in args.single_trigger_files.keys():
logging.info("Getting %s", args.plot_type)
rank = ranking.get_sngls_ranking_from_trigs(trigs, args.plot_type)

if all(rank == 1):
# This is the default value to say "downranked beyond consideration"
# so skip these events
pylab.scatter(-2 * args.window, 0,
color=pycbc.results.ifo_color(ifo),
marker='x',
label=ifo)
continue

pylab.scatter(trigs['end_time'] - t, rank,
color=pycbc.results.ifo_color(ifo), marker='x',
label=ifo)

# Minimum rank which hasn't been set to the default of 1
min_rank = min(min_rank, rank[rank > 1].min())
min_rank = min(min_rank, rank.min())

if args.special_trigger_ids:
special_idx = args.special_trigger_ids[ifo]
Expand Down Expand Up @@ -138,7 +128,10 @@ logging.info("Saving figure")
pycbc.results.save_fig_with_metadata(fig, args.output_file,
cmd = ' '.join(sys.argv),
title = 'Single Detector Trigger Timeseries (%s)' % args.plot_type,
caption = 'Time series showing the single detector triggers'
' centered around the time of the trigger of interest.',
caption = 'Time series showing the single-detector triggers '
'centered around the time of the trigger of interest. '
'Triggers with ranking 1 have been downweighted beyond '
'consideration, but may still form insignificant '
'events.',
)
logging.info("Done!")

0 comments on commit bc6e864

Please sign in to comment.