Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bayeswave
Commits
0cdde70e
Commit
0cdde70e
authored
Sep 23, 2020
by
megmillhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update BW internal injections to handle multiple trigger times
parent
02b635ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
BayesWaveUtils/scripts/bayeswave_pipe
BayesWaveUtils/scripts/bayeswave_pipe
+10
-5
No files found.
BayesWaveUtils/scripts/bayeswave_pipe
View file @
0cdde70e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment