Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
gstlal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gstlal
Commits
935fb78a
Commit
935fb78a
authored
Apr 29, 2020
by
Heather Fong
Committed by
Patrick Godwin
Jul 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gstlal_inspiral_mass_model: uniform-template probabilities should not be normalized
parent
5f4fda2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
gstlal-inspiral/bin/gstlal_inspiral_mass_model
gstlal-inspiral/bin/gstlal_inspiral_mass_model
+4
-1
No files found.
gstlal-inspiral/bin/gstlal_inspiral_mass_model
View file @
935fb78a
...
...
@@ -156,7 +156,10 @@ norm = numpy.sum(prob.values())
chirpmasses
=
numpy
.
array
([
mchirps
[
tid
]
for
tid
in
ids
])
coefficients
=
numpy
.
zeros
((
1
,
1
,
len
(
ids
)
+
1
),
dtype
=
float
)
for
idx
,
tid
in
enumerate
(
ids
):
coefficients
[
0
,
0
,
idx
]
=
numpy
.
log
(
prob
[
tid
])
-
numpy
.
log
(
norm
)
if
options
.
model
==
"uniform-template"
:
coefficients
[
0
,
0
,
idx
]
=
numpy
.
log
(
prob
[
tid
])
else
:
coefficients
[
0
,
0
,
idx
]
=
numpy
.
log
(
prob
[
tid
])
-
numpy
.
log
(
norm
)
#import matplotlib
#matplotlib.use('agg')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment