Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
ligo.skymap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
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
Package Registry
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
Kenneth Corley
ligo.skymap
Commits
b436790d
Commit
b436790d
authored
Nov 09, 2018
by
Leo Pound Singer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error in volume element for ligo-skymap-stats
parent
1429a6dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CHANGES.rst
CHANGES.rst
+3
-0
ligo/skymap/postprocess/find_injection.py
ligo/skymap/postprocess/find_injection.py
+2
-1
No files found.
CHANGES.rst
View file @
b436790d
...
...
@@ -13,6 +13,9 @@ Changelog
- The ``bayestar-localize-lvalert`` and ``ligo-skymap-from-samples`` tools will
now natively output multi-resolution HEALPix files.
- Fix an error in the volume element that resulted in ``ligo-skymap-stats``
underestimating credible volumes by a factor of 2.
0.0.17 (2018-10-24)
===================
...
...
ligo/skymap/postprocess/find_injection.py
View file @
b436790d
...
...
@@ -228,7 +228,8 @@ def find_injection_moc(sky_map, true_ra=None, true_dec=None, true_dist=None,
# Calculate volume of frustum-shaped voxels with distance centered on r
# and extending from (r - d_r) to (r + d_r).
dV
=
(
np
.
square
(
r
)
+
np
.
square
(
d_r
)
/
12
)
*
d_r
*
dA
.
reshape
(
-
1
,
1
)
dV
=
(
2
/
3
*
(
3
*
np
.
square
(
r
)
+
np
.
square
(
d_r
))
*
d_r
*
dA
.
reshape
(
-
1
,
1
))
# Calculate probability within each voxel.
dP
=
probdensity
.
reshape
(
-
1
,
1
)
*
dV
*
np
.
exp
(
...
...
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