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
2b3fc165
Commit
2b3fc165
authored
5 years ago
by
gstlalcbc
Browse files
Options
Downloads
Patches
Plain Diff
FAR trials factor command line option
parent
3fddfa47
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
+3
-2
3 additions, 2 deletions
gstlal-inspiral/python/streamthinca.py
with
3 additions
and
2 deletions
gstlal-inspiral/python/streamthinca.py
+
3
−
2
View file @
2b3fc165
...
...
@@ -255,7 +255,7 @@ class StreamThinca(object):
return
self
.
time_slide_graph
.
push
(
instrument
,
events
,
t_complete
)
def
pull
(
self
,
rankingstat
,
fapfar
=
None
,
zerolag_rankingstatpdf
=
None
,
coinc_sieve
=
None
,
flush
=
False
,
cluster
=
False
,
cap_singles
=
False
):
def
pull
(
self
,
rankingstat
,
fapfar
=
None
,
zerolag_rankingstatpdf
=
None
,
coinc_sieve
=
None
,
flush
=
False
,
cluster
=
False
,
cap_singles
=
False
,
FAR_trialsfactor
=
1.0
):
# NOTE: rankingstat is not used to compute the ranking
# statistic, it supplies the detector livetime segment
# lists to determine which triggers are eligible for
...
...
@@ -334,8 +334,9 @@ class StreamThinca(object):
# FIXME: add proper columns to
# store these values in
coinc_inspiral
.
combined_far
=
fapfar
.
far_from_rank
(
coinc
.
likelihood
)
if
len
(
events
)
==
1
and
cap_singles
and
coinc_inspiral
.
combined_far
<
1.
/
fapfar
.
livetime
:
if
len
(
events
)
==
1
and
cap_singles
and
FAR_trialsfactor
and
coinc_inspiral
.
combined_far
<
1.
/
fapfar
.
livetime
:
coinc_inspiral
.
combined_far
=
1.
/
fapfar
.
livetime
coinc_inspiral
.
combined_far
=
FAR_trialsfactor
*
coinc_inspiral
.
combined_far
coinc_inspiral
.
false_alarm_rate
=
fapfar
.
fap_from_rank
(
coinc
.
likelihood
)
if
zerolag_rankingstatpdf
is
not
None
and
coinc
.
likelihood
is
not
None
:
zerolag_rankingstatpdf
.
zero_lag_lr_lnpdf
.
count
[
coinc
.
likelihood
,]
+=
1
...
...
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