Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
lscsoft
GstLAL
Commits
6507ef3a
Commit
6507ef3a
authored
3 years ago
by
ChiWai Chan
Browse files
Options
Downloads
Patches
Plain Diff
streamthinca.py: create a new background collector for background estimation.
parent
b63bc5cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/streamthinca.py
+13
-0
13 additions, 0 deletions
gstlal-inspiral/python/streamthinca.py
with
13 additions
and
0 deletions
gstlal-inspiral/python/streamthinca.py
+
13
−
0
View file @
6507ef3a
...
...
@@ -221,6 +221,19 @@ class backgroundcollector(object):
return
[
event
for
event
in
map
(
index
.
__getitem__
,
background_ids
)
if
event
.
snr
>=
snr_min
]
class
timereversebackgroundcollector
(
object
):
def
__init__
(
self
):
self
.
events
=
set
()
def
push
(
self
,
event_ids
,
offset_vector
):
# input parameters are just for compatibility
self
.
events
.
update
(
event_ids
)
def
pull
(
self
,
snr_min
,
two_or_more_instruments
,
flushed_events
):
# input parameters are just for compatibility
return
[
event
for
event
in
flushed_events
if
event
.
snr
>=
snr_min
]
class
StreamThinca
(
object
):
def
__init__
(
self
,
xmldoc
,
process_id
,
delta_t
,
min_instruments
=
2
,
sngls_snr_threshold
=
None
):
self
.
ln_lr_from_triggers
=
None
...
...
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