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
7d8e1113
Commit
7d8e1113
authored
5 years ago
by
Chad Hanna
Committed by
Chad Hanna
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_inspiral_create_prior_diststats: make the signal model depend on bandwidth
(cherry picked from commit
79dbac43
)
parent
c4d47e58
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/bin/gstlal_inspiral_create_prior_diststats
+3
-4
3 additions, 4 deletions
gstlal-inspiral/bin/gstlal_inspiral_create_prior_diststats
with
3 additions
and
4 deletions
gstlal-inspiral/bin/gstlal_inspiral_create_prior_diststats
+
3
−
4
View file @
7d8e1113
...
...
@@ -119,8 +119,7 @@ def parse_command_line():
bandwidths
+=
[
templates
.
bandwidth
(
row
.
mass1
,
row
.
mass2
,
row
.
spin1z
,
row
.
spin2z
,
f_min
=
10.0
,
f_max
=
row
.
f_final
,
delta_f
=
0.25
,
psd
=
psd
[
ifo
])]
horizon_factors
.
update
(
bank
.
horizon_factors
)
if
options
.
df
==
"
bandwidth
"
:
# NOTE the 4000 is tuned by looking at real data distributions
options
.
df
=
int
(
4000.
/
min
(
bandwidths
))
options
.
df
=
int
(
min
(
bandwidths
))
return
options
,
process_params
,
filenames
,
template_ids
,
horizon_factors
...
...
@@ -160,10 +159,10 @@ process = ligolw_process.register_to_xmldoc(xmldoc, u"gstlal_inspiral_create_pri
rankingstat
=
far
.
RankingStat
(
template_ids
=
template_ids
,
instruments
=
options
.
instrument
,
delta_t
=
options
.
coincidence_threshold
,
min_instruments
=
options
.
min_instruments
,
population_model_file
=
options
.
mass_model_file
,
dtdphi_file
=
options
.
dtdphi_file
,
horizon_factors
=
horizon_factors
)
if
options
.
background_prior
>
0
:
rankingstat
.
denominator
.
add_noise_model
(
number_of_events
=
options
.
background_prior
,
df
=
int
(
options
.
df
)
)
rankingstat
.
denominator
.
add_noise_model
(
number_of_events
=
options
.
background_prior
)
# Add the numerator
rankingstat
.
numerator
.
add_signal_model
()
rankingstat
.
numerator
.
add_signal_model
(
df
=
int
(
options
.
df
)
)
#
...
...
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