Commit 0cdde70e authored by megmillhouse's avatar megmillhouse

Update BW internal injections to handle multiple trigger times

parent 02b635ff
......@@ -434,11 +434,16 @@ if cp.has_option('bayeswave_options','BW-inject'):
print("Error: BW-inject must be in ", ['signal','glitch'], file=sys.stderr)
sys.exit(1)
# Perform internal injections drawn from the signal or glitch model
if opts.trigger_time is None:
opts.trigger_time=1126259462.392
print("Setting trigger time to %f"%opts.trigger_time, file=sys.stdout)
trigger_list = pipe_utils.triggerList(cp, gps_times=opts.trigger_time,
internal_injections=True)
# Check if there's a defined trigger list of GPS times
if opts.trigger_list is not None:
trigger_list = pipe_utils.triggerList(cp, trigger_file=opts.trigger_list,
internal_injections=True)
else:
if opts.trigger_time is None:
opts.trigger_time=1126259462.392
print("Setting trigger time to %f"%opts.trigger_time, file=sys.stdout)
trigger_list = pipe_utils.triggerList(cp, gps_times=opts.trigger_time,
internal_injections=True)
#
# GraceDB support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment