Closed simeonreusch closed 1 year ago
Try this instead:
from ligo.skymap.io import read_sky_map
from ligo.skymap.moc import rasterize
skymap_path = "S230529ay_rev4_Bilby.multiorder.fits,0"
data = read_sky_map(skymap_path, moc=True)
data_nested = rasterize(data)
Hi Leo, raising this here as I cannot open issues on the LVK gitlab.
When employing the
ligo.skymap.moc.rasterize
function to convert the Bilby multiorder map of S230529A fromNUNIQ
toNESTED
, I get the following error (probably from your C implementation of therasterize
function):Note that
out of memory
is not correct, I monitored my RAM and there is plenty available, and it does not fill up during code execution.I have attached a minimal example and the skymap (zipped to upload here) to reproduce the error (Robert Stein also encountered this on his machine, we both use ARM Macs)
code_and_skymap.zip