Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
85db5273
Commit
85db5273
authored
5 years ago
by
GstLAL CBC Offline
Committed by
Chad Hanna
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
don't allow Ligo + (virgo or kagra) time to cause ligo sngls to go in the background
(cherry picked from commit
bc375fc8
)
parent
ebe7c676
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/streamthinca.py
+10
-6
10 additions, 6 deletions
gstlal-inspiral/python/streamthinca.py
with
10 additions
and
6 deletions
gstlal-inspiral/python/streamthinca.py
+
10
−
6
View file @
85db5273
...
...
@@ -211,12 +211,13 @@ class backgroundcollector(object):
elif
len
(
event_ids
)
==
1
:
self
.
zerolag_singles
.
update
(
event_ids
)
def
pull
(
self
,
snr_min
,
two_or_more_instruments
,
flushed_events
):
def
pull
(
self
,
snr_min
,
hl_on
,
flushed_events
):
index
=
dict
((
id
(
event
),
event
)
for
event
in
flushed_events
)
flushed_ids
=
set
(
index
)
background_ids
=
self
.
timeshifted_coincs
&
flushed_ids
self
.
timeshifted_coincs
-=
flushed_ids
background_ids
|=
set
(
event_id
for
event_id
in
self
.
zerolag_singles
&
flushed_ids
if
float
(
index
[
event_id
].
end
)
in
two_or_more_instruments
)
# put all virgo and kagra in their own background
background_ids
|=
set
(
event_id
for
event_id
in
self
.
zerolag_singles
&
flushed_ids
if
((
float
(
index
[
event_id
].
end
)
in
hl_on
)
or
(
index
[
event_id
].
ifo
not
in
(
"
H1
"
,
"
L1
"
))))
self
.
zerolag_singles
-=
flushed_ids
return
[
event
for
event
in
map
(
index
.
__getitem__
,
background_ids
)
if
event
.
snr
>=
snr_min
]
...
...
@@ -349,11 +350,14 @@ class StreamThinca(object):
# add selected singles to the noise model
if
flushed
:
# times when
at least 2 instruments
were generating
# times when
H and L
were generating
# SNR. used to select zero-lag singles for
# inclusion in the denominator.
two_or_more_instruments
=
segmentsUtils
.
vote
(
snr_segments
.
values
(),
2
)
if
"
H1
"
in
snr_segments
and
"
L1
"
in
snr_segments
:
hl_on
=
snr_segments
[
"
H1
"
]
&
snr_segments
[
"
L1
"
]
else
:
hl_on
=
segments
.
segmentlist
([])
# FIXME: this is needed to work around rounding
# problems in safety checks below, trying to
# compare GPS trigger times to float segment
...
...
@@ -361,9 +365,9 @@ class StreamThinca(object):
# precision to know if triggers near the edge are
# in or out). it would be better not to have to
# screw around like this.
two_or_more_instruments
.
protract
(
1e-3
)
# 1 ms
hl_on
.
protract
(
1e-3
)
# 1 ms
for
event
in
self
.
backgroundcollector
.
pull
(
rankingstat
.
snr_min
,
two_or_more_instruments
,
flushed
):
for
event
in
self
.
backgroundcollector
.
pull
(
rankingstat
.
snr_min
,
hl_on
,
flushed
):
rankingstat
.
denominator
.
increment
(
event
)
# add any triggers that have been used in coincidences for
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment