Commit 84c42e06 authored by Leo Pound Singer's avatar Leo Pound Singer

Track function rename in ligo.skymap

The function `ligo.skymap.postprocess.find_injection.find_injection_moc`
was renamed to `ligo.skymap.postprocess.crossmatch.crossmatch`.
parent 3e8428f1
Pipeline #120537 passed with stages
in 4 minutes and 22 seconds
......@@ -14,7 +14,7 @@ from astropy.io.fits import getheader
from ligo.gracedb import rest
from ligo.skymap.io.fits import read_sky_map
from ligo.skymap.postprocess.ellipse import find_ellipse
from ligo.skymap.postprocess.find_injection import find_injection_moc
from ligo.skymap.postprocess.crossmatch import crossmatch
from .jinja import env
from ._version import get_versions
......@@ -460,7 +460,7 @@ def uncertainty_ellipse(graceid, filename, client, cl=90):
else:
skymap = read_map_gracedb(graceid, filename, client)
result = find_injection_moc(skymap, contours=[cl / 100])
result = crossmatch(skymap, contours=[cl / 100])
greedy_area = result.contour_areas[0]
ra, dec, a, b, pa, ellipse_area = find_ellipse(skymap, cl=cl)
return ellipse_area <= 1.35*greedy_area, ra, dec, a, b, pa, \
......
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