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
6a91321b
Commit
6a91321b
authored
7 years ago
by
Kipp Cannon
Committed by
Kipp Cannon
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
inspiral.py: forgot to add quadratic scaling fix to .flush()
parent
354f47ea
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/inspiral.py
+9
-2
9 additions, 2 deletions
gstlal-inspiral/python/inspiral.py
with
9 additions
and
2 deletions
gstlal-inspiral/python/inspiral.py
+
9
−
2
View file @
6a91321b
...
...
@@ -909,9 +909,16 @@ class Data(object):
# non-coincident sngls. add them to the distribution. as
# above in appsink_new_buffer() we skip singles collected
# during times when only one instrument was one.
# times when at least 2 instruments were generating SNR.
# used to sieve triggers for inclusion in the denominator.
discard_boundary
=
float
(
self
.
stream_thinca
.
discard_boundary
)
snr_segments
=
segments
.
segmentlistdict
((
instrument
,
ratebinlist
[
bisect
.
bisect_left
(
ratebinlist
,
(
discard_boundary
,)):].
segmentlist
())
for
instrument
,
ratebinlist
in
self
.
rankingstat
.
denominator
.
triggerrates
.
items
())
two_or_more_instruments
=
segmentsUtils
.
vote
(
snr_segments
.
values
(),
2
)
ratebinlists
=
self
.
rankingstat
.
denominator
.
triggerrates
.
values
()
for
event
in
self
.
stream_thinca
.
flush
(
self
.
coincs_document
.
xmldoc
,
self
.
coincs_document
.
process_id
,
s
elf
.
rankingstat
.
segment
list
s
,
fapfar
=
self
.
fapfar
):
if
sum
(
event
.
end
in
ratebins
for
ratebins
in
ratebinlists
)
>
1
:
for
event
in
self
.
stream_thinca
.
flush
(
self
.
coincs_document
.
xmldoc
,
self
.
coincs_document
.
process_id
,
s
nr_
segments
,
fapfar
=
self
.
fapfar
):
if
event
.
end
in
two_or_more_instruments
:
self
.
rankingstat
.
denominator
.
increment
(
event
)
self
.
coincs_document
.
commit
()
...
...
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