Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove removal of downranked triggers #4579

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!")
Loading