Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22nd September 2020 starting at approximately 9am MST.It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit b436790d authored by Leo Pound Singer's avatar Leo Pound Singer

Fix error in volume element for ligo-skymap-stats

parent 1429a6dd
......@@ -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)
===================
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment