Code Monkey home page Code Monkey logo

ligo.skymap's Introduction

ligo.skymap

The ligo.skymap package provides tools for reading, writing, generating, and visualizing gravitational-wave probability maps from LIGO, Virgo, and KAGRA. Some of the key features of this package are:

To get started, see the installation instructions or the full documentation.

This illustration of the position of GW170817, prepared using ligo.skymap, illustrates the main features of this package: rapid localization of compact binaries with BAYESTAR, three-dimensional density estimation , cross-matching with galaxy catalogs, and visualization of gravitational-wave sky maps. Reproduced from.

This illustration of the position of GW170817, prepared using ligo.skymap, illustrates the main features of this package: rapid localization of compact binaries with BAYESTAR1, three-dimensional density estimation 23, cross-matching with galaxy catalogs, and visualization of gravitational-wave sky maps. Reproduced from4.

  1. Singer, L. P., & Price, L. R. 2016, Phys. Rev. D, 93, 024013. https://doi.org/10.1103/PhysRevD.93.024013

  2. Singer, L. P., Chen, H.-Y., Holz, D. E., et al. 2016, Astropys. J. Lett., 829, L15. https://doi.org/10.3847/2041-8205/829/1/L15

  3. Singer, L. P., Chen, H.-Y., Holz, D. E., et al. 2016, Astropys. J. Supp., 226, 10. https://doi.org/10.3847/0067-0049/226/1/10

  4. Kasliwal, M. M., Nakar, E., Singer, L. P. et al. 2019, Science, 358, 1559. https://doi.org/10.1126/science.aap9455

ligo.skymap's People

Contributors

ahnitz avatar bfarr avatar duncanmmacleod avatar geoffreymo avatar hoyc1 avatar lpsinger avatar pllim avatar titodalcanton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ligo.skymap's Issues

Different wheel error when installing ligo.skymap.

When I get try and install ligo.skymap, I get the error below. At the top of the error (line 8, or so), it mentions an Intel oneAPI compiler. I'm not sure what this error means. I have tried installing llmv and libomp; apparently Macs need a work around for this error, I'm not certain. Either way, I have followed through bluesheeptoken/CPT#68 (comment) with no success. What next steps should I take?


Building wheels for collected packages: ligo.skymap
Building wheel for ligo.skymap (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for ligo.skymap (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [187 lines of output]
/bin/sh: pkg-config: command not found
pkg-config could not lookup up package(s) gsl.
This may cause the build to fail below.
test_icx.c:3:2: error: This is not the Intel oneAPI compiler
#error This is not the Intel oneAPI compiler
^
1 error generated.
clang: error: unsupported option '-fopenmp'
Cannot compile Cython/C/C++ extension with OpenMP, reverting to non-parallel code
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-311
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/moc.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/conftest.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/version.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/_astropy_init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/kde.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/distance.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
copying ligo/skymap/healpix_tree.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/allsky.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/cmap.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/bayes_factor.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/util.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/angle.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/pp.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/backdrop.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/poly.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/marker.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/cylon.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/ilwd.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/numpy.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/sqlite.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/stopwatch.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/file.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
copying ligo/skymap/util/progress.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
copying ligo/skymap/bayestar/interpolation.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
copying ligo/skymap/bayestar/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
copying ligo/skymap/bayestar/ez_emcee.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
copying ligo/skymap/bayestar/ptemcee.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
copying ligo/skymap/bayestar/filter.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates
copying ligo/skymap/coordinates/detector.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates
copying ligo/skymap/coordinates/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates
copying ligo/skymap/coordinates/eigenframe.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io
copying ligo/skymap/io/fits.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io
copying ligo/skymap/io/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io
copying ligo/skymap/io/hdf5.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests
copying ligo/skymap/tests/test_moc.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests
copying ligo/skymap/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/util.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/crossmatch.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/ellipse.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/contour.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
copying ligo/skymap/postprocess/cosmology.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/extern
copying ligo/skymap/extern/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/extern
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_unflatten.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_contour_moc.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/matplotlib.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_airmass.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_localize_coincs.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_stats.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_localize_lvalert.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_constellations.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_contour.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_from_samples.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_combine.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_inject.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_flatten.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_stats.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_observability.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_realize_coincs.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_volume.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_coherence.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/ligo_skymap_plot_pp_samples.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_sample_model_psd.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
copying ligo/skymap/tool/bayestar_mcmc.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests
copying ligo/skymap/plot/tests/test_plot.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests
copying ligo/skymap/plot/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util/tests
copying ligo/skymap/util/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util/tests
copying ligo/skymap/util/tests/test_progress.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/util/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar/tests
copying ligo/skymap/bayestar/tests/test_interpolation.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar/tests
copying ligo/skymap/bayestar/tests/test_bayestar.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar/tests
copying ligo/skymap/bayestar/tests/test_signal_amplitude_model.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar/tests
copying ligo/skymap/bayestar/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/bayestar/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates/tests
copying ligo/skymap/coordinates/tests/test_detector.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates/tests
copying ligo/skymap/coordinates/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/coordinates/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests
copying ligo/skymap/io/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests
copying ligo/skymap/io/tests/test_io_events.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/magic.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/ligolw.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/hdf.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/sqlite.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/detector_disabled.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/gracedb.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
copying ligo/skymap/io/events/base.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/events
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data/gstlal_reference_psd
copying ligo/skymap/io/tests/data/gstlal_reference_psd/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data/gstlal_reference_psd
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests/plugins
copying ligo/skymap/tests/plugins/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests/plugins
copying ligo/skymap/tests/plugins/omp.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tests/plugins
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess/tests
copying ligo/skymap/postprocess/tests/test_crossmatch.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess/tests
copying ligo/skymap/postprocess/tests/test_cosmology.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess/tests
copying ligo/skymap/postprocess/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/postprocess/tests
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/extern/numpy
copying ligo/skymap/extern/numpy/quantile.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/extern/numpy
copying ligo/skymap/extern/numpy/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/extern/numpy
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_bayestar.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_combine.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_flatten.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_plot.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_bayestar_inject.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_plot_stats.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/init.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_from_samples.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/tool/tests/test_help.py -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/tool/tests
copying ligo/skymap/plot/cylon.csv -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
copying ligo/skymap/plot/ne_simplified_coastline.json -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot
creating build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_astro-hours-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_reticle.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_galactic-degrees-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_globe_axes.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_geo-degrees-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_geo-hours-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_geo-hours-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_astro-degrees-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_astro-degrees-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_geo-degrees-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_galactic-hours-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_pp_plot_steps.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_pp_plot_lines.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_galactic-degrees-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_galactic-hours-mollweide.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_axes_astro-hours-aitoff.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_zoom_axes.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_allsky_obstime.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/plot/tests/baseline/test_pp_plot_default.png -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/plot/tests/baseline
copying ligo/skymap/io/tests/data/test.hdf5 -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/2016_subset.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/G211117_psd.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/G197392_psd.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/G197392_coinc.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/G211117_coinc.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data
copying ligo/skymap/io/tests/data/gstlal_reference_psd/H1L1V1-REFERENCE_PSD-967234210-29963.xml.gz -> build/lib.macosx-10.9-x86_64-cpython-311/ligo/skymap/io/tests/data/gstlal_reference_psd
running build_ext
building 'ligo.skymap.core' extension
creating build/temp.macosx-10.9-x86_64-cpython-311
creating build/temp.macosx-10.9-x86_64-cpython-311/cextern
creating build/temp.macosx-10.9-x86_64-cpython-311/cextern/chealpix
creating build/temp.macosx-10.9-x86_64-cpython-311/src
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/neil/anaconda3/include -fPIC -O2 -isystem /Users/neil/anaconda3/include -I/private/var/folders/4d/jvzbvny966j5m244xbs6d27h0000gn/T/pip-build-env-pftf17cq/overlay/lib/python3.11/site-packages/numpy/core/include -Icextern/chealpix -I/Users/neil/anaconda3/include/python3.11 -c cextern/chealpix/chealpix.c -o build/temp.macosx-10.9-x86_64-cpython-311/cextern/chealpix/chealpix.o -std=gnu11 -fvisibility=hidden -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/neil/anaconda3/include -fPIC -O2 -isystem /Users/neil/anaconda3/include -I/private/var/folders/4d/jvzbvny966j5m244xbs6d27h0000gn/T/pip-build-env-pftf17cq/overlay/lib/python3.11/site-packages/numpy/core/include -Icextern/chealpix -I/Users/neil/anaconda3/include/python3.11 -c src/bayestar_distance.c -o build/temp.macosx-10.9-x86_64-cpython-311/src/bayestar_distance.o -std=gnu11 -fvisibility=hidden -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE
src/bayestar_distance.c:21:10: fatal error: 'gsl/gsl_cblas.h' file not found
#include <gsl/gsl_cblas.h>
^~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ligo.skymap
Failed to build ligo.skymap
ERROR: Could not build wheels for ligo.skymap, which is required to install pyproject.toml-based projects

Inconsistent tuple lengths in find_ellipse

When testing in gwcelery, an error was found in find_ellipse where the expected values to unpack were different from expected
Screen Shot 2022-10-06 at 10 35 13 AM

This appears to occur due to the tuples returned being different lengths, with the standard output being six values

return ra, dec, a, b, pa, area
and the error output being five
return np.nan, np.nan, np.nan, np.nan, np.nan

This could be fixed by changing the latter output to six np.nan values.

Spelling Mistake in Documentation

In the documentation for localizing simulated events with BAYESTAR, there is a typo in the first section (Draw Injections) where it is advised to use lalapps_inpsinj --help. This throws a command not found error. It can be fixed by replacing the command with lalapps_inspinj -- help. I believe changing the spelling to the right one should fix the issue. The link to the page can be found here.

Issue with Coordinate Transform in Inset

Hi!

I am trying to display a fits skymap within an inset on a contour plot (similar to what is shown here: https://lscsoft.docs.ligo.org/ligo.skymap/ but with just the Gemini+F2 plot in the inset). I am having trouble getting the coordinate transforms within the inset to work properly.

If I don't include a transform within the ax_inset.imshow() command, it appears to only show a small corner of the skymap in the inset, which makes sense.

If I use the same transform I used for the skymap plotted in the larger figure (from the header of the fits file) within the ax_inset.imshow() command, the inset is completely blank.

The only way I can get any data to appear in the inset is to use ax.get_transform('pixel'), but then I have the issue of the scale being off.

I've attached examples of the three situations I mentioned. Do you have any suggestions for plotting a fits image, with the correct scaling, as an inset of a healpix contour plot?
no_transform
header_transform
pixel_transform

problems in importing io.fits

I installed this github version and got the following problem. Note that the version from pip, for the same instruction created a segmentation fault with output

double free or corruption (top)
Aborted (core dumped)
Python 3.7.5 (default, Nov  7 2019, 10:50:52) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from ligo.skymap.io import fits
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-2ea362b450de> in <module>
----> 1 from ligo.skymap.io import fits

~/Soft/ligo.skymap/ligo/skymap/io/__init__.py in <module>
      9         exec('from . import {0};'
     10              '__all__ += getattr({0}, "__all__", ());'
---> 11              'from .{0} import *'.format(module))
     12     del module
     13 

~/Soft/ligo.skymap/ligo/skymap/io/__init__.py in <module>

~/Soft/ligo.skymap/ligo/skymap/io/fits.py in <module>
     68 import astropy_healpix as ah
     69 from astropy.table import Table
---> 70 from .. import moc
     71 
     72 log = logging.getLogger()

~/Soft/ligo.skymap/ligo/skymap/moc.py in <module>
     32 from numpy.lib.recfunctions import repack_fields
     33 
---> 34 from .core import nest2uniq, uniq2nest, uniq2order, uniq2pixarea, uniq2ang
     35 from .core import rasterize as _rasterize
     36 from .util.numpy import add_newdoc_ufunc, require_contiguous_aligned

ModuleNotFoundError: No module named 'ligo.skymap.core'

Can you help me?

Example?

Hi

it would be very helpful for a user like me to see an example on how to build the beautiful plot at https://lscsoft.docs.ligo.org/ligo.skymap/
At least the part with the localisation map projected on the sphere with the GBM and IPN localisations.

Would you link a github repository with the source code of some plots?

Many thanks,
Carlo

Error while importing io from ligo.skymap

Hello,
I'm trying to use io from ligo.skymap on Google Colab however, when I run the following:
!pip install ligo.skymap
from ligo.skymap import io
I get ImportError: cannot import name 'IDTypes' from 'ligo.lw.types'

This worked fine for me a month ago so I thought !pip install ligo.skymap==0.5.3 would work but I got the same error. Thank you in advance for the help!

Example in allsky.py give error "TypeError: unhashable type: 'SkyCoord'"

from astropy.coordinates import SkyCoord
from astropy.io import fits
from astropy import units as u
import ligo.skymap.plot
from matplotlib import pyplot as plt
url = 'https://dcc.ligo.org/public/0146/G1701985/001/bayestar_no_virgo.fits.gz'
center = SkyCoord.from_name('NGC 4993')
fig = plt.figure(figsize=(4, 4), dpi=100)
ax = plt.axes(
    [0.05, 0.05, 0.9, 0.9],
    projection='astro globe',
    center=center)

TypeError Traceback (most recent call last)
in
8 center = SkyCoord.from_name('NGC 4993')
9 fig = plt.figure(figsize=(4, 4), dpi=100)
---> 10 ax = plt.axes(
11 [0.05, 0.05, 0.9, 0.9],
12 projection='astro globe',

~/.venv/myVE/lib/python3.8/site-packages/matplotlib/pyplot.py in axes(arg, **kwargs)
964 return subplot(111, **kwargs)
965 else:
--> 966 return gcf().add_axes(arg, **kwargs)
967
968

~/.venv/myVE/lib/python3.8/site-packages/matplotlib/figure.py in add_axes(self, *args, **kwargs)
1222 # with the exact args/kwargs exists, return it immediately.
1223 key = self._make_key(*args, **kwargs)
-> 1224 ax = self._axstack.get(key)
1225 if ax is not None:
1226 self.sca(ax)

~/.venv/myVE/lib/python3.8/site-packages/matplotlib/figure.py in get(self, key)
76 If it is not present, return None.
77 """
---> 78 item = dict(self._elements).get(key)
79 if item is None:
80 return None

TypeError: unhashable type: 'SkyCoord'

Wheel error during ligo.skymap installation

Hello! I'm trying to install ligo.skymap with pip, however, I get errors on the stage of building wheels for collected packages: ligo-segments, python-ligo-lw, lscsoft-glue. I tried the solutions described in similar situations, but it didn't work.
Could you please help me to solve it?

Here is my Terminal output (sorry if it's too long):

Building wheels for collected packages: ligo-segments, python-ligo-lw, lscsoft-glue
Building wheel for ligo-segments (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
/usr/local/lib/python3.8/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
warnings.warn(msg, SetuptoolsDeprecationWarning)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-cpython-38
creating build/lib.macosx-10.15-x86_64-cpython-38/ligo
copying ligo/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo
creating build/lib.macosx-10.15-x86_64-cpython-38/ligo/segments
copying ligo/segments/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/segments
copying ligo/segments/utils.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/segments
running build_ext
building 'ligo.segments.__segments' extension
creating build/temp.macosx-10.15-x86_64-cpython-38
creating build/temp.macosx-10.15-x86_64-cpython-38/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Isrc -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/infinity.c -o build/temp.macosx-10.15-x86_64-cpython-38/src/infinity.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ligo-segments
Running setup.py clean for ligo-segments
Building wheel for python-ligo-lw (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
/usr/local/lib/python3.8/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
warnings.warn(msg, SetuptoolsDeprecationWarning)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-cpython-38
creating build/lib.macosx-10.15-x86_64-cpython-38/ligo
copying ligo/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo
creating build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/ligolw.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/lsctables.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/param.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/types.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/dbtables.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/table.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
copying ligo/lw/array.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw
creating build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/ligolw_add.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/search_summary.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/ilwd.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/segments.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/ligolw_sqlite.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/coincs.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/process.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
copying ligo/lw/utils/time_slide.py -> build/lib.macosx-10.15-x86_64-cpython-38/ligo/lw/utils
running build_ext
building 'ligo.lw.tokenizer' extension
creating build/temp.macosx-10.15-x86_64-cpython-38
creating build/temp.macosx-10.15-x86_64-cpython-38/ligo
creating build/temp.macosx-10.15-x86_64-cpython-38/ligo/lw
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Iligo/lw -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c ligo/lw/tokenizer.RowBuilder.c -o build/temp.macosx-10.15-x86_64-cpython-38/ligo/lw/tokenizer.RowBuilder.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-ligo-lw
Running setup.py clean for python-ligo-lw
Building wheel for lscsoft-glue (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for lscsoft-glue (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
generating glue/git_version.py
/private/var/folders/s9/t49rydtj00dfkh3ps3s2lgg40000gn/T/pip-build-env-2p3j3xhe/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
not in git checkout or cannot find git executable; using existing glue/git_version.py
creating build
creating build/lib.macosx-10.15-x86_64-cpython-38
creating build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/text_progress_bar.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/pidfile.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/LDBDWClient.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/iterutils.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/gpstime.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/markup.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/utils.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/pipeline.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/lal.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/git_version.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
copying glue/ldbd.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue
creating build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/ligolw.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/ilwd.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/lsctables.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/param.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/types.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/dbtables.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/table.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
copying glue/ligolw/array.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw
creating build/lib.macosx-10.15-x86_64-cpython-38/glue/segmentdb
copying glue/segmentdb/query_engine.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/segmentdb
copying glue/segmentdb/segmentdb_utils.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/segmentdb
copying glue/segmentdb/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/segmentdb
creating build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/coalesce_db.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/ligolw_add.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/search_summary.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/segments.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/init.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/ligolw_sqlite.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/coincs.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/print_tables.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/process.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
copying glue/ligolw/utils/time_slide.py -> build/lib.macosx-10.15-x86_64-cpython-38/glue/ligolw/utils
running build_ext
building 'glue.ligolw.tokenizer' extension
creating build/temp.macosx-10.15-x86_64-cpython-38
creating build/temp.macosx-10.15-x86_64-cpython-38/glue
creating build/temp.macosx-10.15-x86_64-cpython-38/glue/ligolw
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Isrc -Iglue/ligolw -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c glue/ligolw/tokenizer.RowBuilder.c -o build/temp.macosx-10.15-x86_64-cpython-38/glue/ligolw/tokenizer.RowBuilder.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lscsoft-glue
Failed to build ligo-segments python-ligo-lw lscsoft-glue
ERROR: Could not build wheels for lscsoft-glue, which is required to install pyproject.toml-based projects

`ligo.skymap.moc.rasterize` fails with `S230529ay_rev4_Bilby.multiorder`

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 from NUNIQ to NESTED, I get the following error (probably from your C implementation of the rasterize function):

GSL function failed: not enough memory to allocate image (errnum=8)
XLAL Error - <GSL function> (src/bayestar_moc.c:127): Generic failure
Traceback (most recent call last):
  File "/Users/simeon/nuztf/test_rasterize.py", line 31, in <module>
    probs = rasterize(data)
  File "/Users/simeon/miniconda3/envs/nuztf/lib/python3.10/site-packages/ligo/skymap/moc.py", line 161, in rasterize
    return _rasterize(moc_data, order=order)
MemoryError: Out of memory

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

Unable to import

Hello all,

Not sure if this has anything to do on your end. But I am unable to successfully import the ligo.skymap module. I went through the pip installation procedures but when I try to import, I am left with this error:

>>> import ligo.skymap
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/ligo/skymap/__init__.py", line 30, in <module>
    from .core import omp   # noqa
ImportError: /usr/local/lib/python3.6/dist-packages/ligo/skymap/core.cpython-36m-x86_64-linux-gnu.so: undefined symbol: gsl_root_fdfsolver_steffenson

I tried updating the gnu_gsl library but still am getting the same error. Have you seen this error before?

pip subprocess to install build dependencies did not run successfully

Hi,

I used Python 3.10.5 and pip 24.0 on Windows 10 to install ligo.skymap using "py -m pip install ligo.skymap" in a Windows command prompt.

Everything goes smoothly, until the installation reaches ligo.skymap-0.6.1. The error appears to be when it tries to install numpy 1.19.3, that may not support my version of Python.

Here is the error script (sorry for the length), could you help me resolve this ?

C:\Users\fredo\Downloads>py -m pip install ligo.skymap
Collecting ligo.skymap
  Using cached ligo.skymap-1.1.2.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting astroplan>=0.7 (from ligo.skymap)
  Using cached astroplan-0.9.1.tar.gz (140 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: astropy>=5.0 in c:\users\fredo\appdata\local\programs\python\python310\lib\site-packages (from ligo.skymap) (6.0.0)
Collecting astropy-healpix>=0.3 (from ligo.skymap)
  Using cached astropy_healpix-1.0.2-cp39-abi3-win_amd64.whl.metadata (4.2 kB)
Collecting healpy (from ligo.skymap)
  Using cached healpy-1.16.6.tar.gz (4.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting h5py (from ligo.skymap)
  Using cached h5py-3.10.0-cp310-cp310-win_amd64.whl.metadata (2.5 kB)
INFO: pip is looking at multiple versions of ligo-skymap to determine which version is compatible with other requirements. This could take a while.
Collecting ligo.skymap
  Using cached ligo.skymap-1.1.1.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.1.0.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.7.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.6.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.5.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.4.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.3.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
INFO: pip is still looking at multiple versions of ligo-skymap to determine which version is compatible with other requirements. This could take a while.
  Using cached ligo.skymap-1.0.2.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.1.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-1.0.0.tar.gz (2.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached ligo.skymap-0.6.1.tar.gz (2.0 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [237 lines of output]
      Collecting setuptools
        Using cached setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)
      Collecting setuptools_scm
        Using cached setuptools_scm-8.0.4-py3-none-any.whl.metadata (6.4 kB)
      Collecting wheel
        Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
      Collecting extension-helpers
        Using cached extension_helpers-1.1.1-py3-none-any.whl.metadata (2.2 kB)
      Collecting numpy==1.19.3
        Using cached numpy-1.19.3.zip (7.3 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        Preparing metadata (pyproject.toml) did not run successfully.
        exit code: 1

        [204 lines of output]
        setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.10.
          warnings.warn(
        Running from numpy source directory.
        setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
          run_build = parse_setuppy_commands()
        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\tools\cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
          from distutils.version import LooseVersion
        Processing numpy/random\_bounded_integers.pxd.in
        Processing numpy/random\bit_generator.pyx
        Processing numpy/random\mtrand.pyx
        Processing numpy/random\_bounded_integers.pyx.in
        Processing numpy/random\_common.pyx
        Processing numpy/random\_generator.pyx
        Processing numpy/random\_mt19937.pyx
        Processing numpy/random\_pcg64.pyx
        Processing numpy/random\_philox.pyx
        Processing numpy/random\_sfc64.pyx
        Cythonizing sources
        blas_opt_info:
        blas_mkl_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries mkl_rt not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        blis_info:
          libraries blis not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        openblas_info:
          libraries openblas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
        customize GnuFCompiler
        Could not locate executable g77
        Could not locate executable f77
        customize IntelVisualFCompiler
        Could not locate executable ifort
        Could not locate executable ifl
        customize AbsoftFCompiler
        Could not locate executable f90
        customize CompaqVisualFCompiler
        Could not locate executable DF
        customize IntelItaniumVisualFCompiler
        Could not locate executable efl
        customize Gnu95FCompiler
        Could not locate executable gfortran
        Could not locate executable f95
        customize G95FCompiler
        Could not locate executable g95
        customize IntelEM64VisualFCompiler
        customize IntelEM64TFCompiler
        Could not locate executable efort
        Could not locate executable efc
        customize PGroupFlangCompiler
        Could not locate executable flang
        don't know how to compile Fortran code on platform 'nt'
          NOT AVAILABLE

        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
          libraries tatlas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        atlas_3_10_blas_info:
          libraries satlas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
          libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        atlas_blas_info:
          libraries f77blas,cblas,atlas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        accelerate_info:
          NOT AVAILABLE

        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\numpy\distutils\system_info.py:1914: UserWarning:
            Optimized (vendor) Blas libraries are not found.
            Falls back to netlib Blas library which has worse performance.
            A better performance should be easily gained by switching
            Blas library.
          if self._calc_info(blas):
        blas_info:
          libraries blas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\numpy\distutils\system_info.py:1914: UserWarning:
            Blas (http://www.netlib.org/blas/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [blas]) or by setting
            the BLAS environment variable.
          if self._calc_info(blas):
        blas_src_info:
          NOT AVAILABLE

        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\numpy\distutils\system_info.py:1914: UserWarning:
            Blas (http://www.netlib.org/blas/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [blas_src]) or by setting
            the BLAS_SRC environment variable.
          if self._calc_info(blas):
          NOT AVAILABLE

        non-existing path in 'numpy\\distutils': 'site.cfg'
        lapack_opt_info:
        lapack_mkl_info:
          libraries mkl_rt not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        openblas_lapack_info:
          libraries openblas not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        openblas_clapack_info:
          libraries openblas,lapack not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        flame_info:
          libraries flame not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries tatlas,tatlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries lapack_atlas not found in C:\
          libraries tatlas,tatlas not found in C:\
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
          libraries tatlas,tatlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
        <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
          NOT AVAILABLE

        atlas_3_10_info:
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries satlas,satlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries lapack_atlas not found in C:\
          libraries satlas,satlas not found in C:\
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
          libraries satlas,satlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
        <class 'numpy.distutils.system_info.atlas_3_10_info'>
          NOT AVAILABLE

        atlas_threads_info:
        Setting PTATLAS=ATLAS
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries lapack_atlas not found in C:\
          libraries ptf77blas,ptcblas,atlas not found in C:\
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
        <class 'numpy.distutils.system_info.atlas_threads_info'>
          NOT AVAILABLE

        atlas_info:
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries f77blas,cblas,atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib
          libraries lapack_atlas not found in C:\
          libraries f77blas,cblas,atlas not found in C:\
          libraries lapack_atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
          libraries f77blas,cblas,atlas not found in C:\Users\fredo\AppData\Local\Programs\Python\Python310\libs
        <class 'numpy.distutils.system_info.atlas_info'>
          NOT AVAILABLE

        lapack_info:
          libraries lapack not found in ['C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\', 'C:\\Users\\fredo\\AppData\\Local\\Programs\\Python\\Python310\\libs']
          NOT AVAILABLE

        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\numpy\distutils\system_info.py:1748: UserWarning:
            Lapack (http://www.netlib.org/lapack/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [lapack]) or by setting
            the LAPACK environment variable.
          return getattr(self, '_calc_info_{}'.format(name))()
        lapack_src_info:
          NOT AVAILABLE

        C:\Users\fredo\AppData\Local\Temp\pip-install-4iwuyg23\numpy_770e2c8f497a4a5a94196e5f84334232\numpy\distutils\system_info.py:1748: UserWarning:
            Lapack (http://www.netlib.org/lapack/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [lapack_src]) or by setting
            the LAPACK_SRC environment variable.
          return getattr(self, '_calc_info_{}'.format(name))()
          NOT AVAILABLE

        numpy_linalg_lapack_lite:
          FOUND:
            language = c
            define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]

        C:\Users\fredo\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running dist_info
        running build_src
        build_src
        building py_modules sources
        creating build
        creating build\src.win-amd64-3.10
        creating build\src.win-amd64-3.10\numpy
        creating build\src.win-amd64-3.10\numpy\distutils
        building library "npymath" sources
        error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      Encountered error while generating package metadata.

      See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

sky map kde as stand alone utility

First, thanks for such a great open source package!

I have a lot of various sky localization algorithms that produce posterior samples which I would like to convert to MOCs / healpix files. The SkymapKDE classes do an excellent job of this, but i don't want to make my users have to install large dependencies in general. Its not a huge deal, but if those utilities were split of in a separate package for more general use, it would be great. Is this a possibility?

center argument for all projects

Is it possible to add a center argument for all the projections? I'm will to make a PR if you can point me to the correct place to implement this.

Check if position within countour?

Hi Leo,

Given a position, and a set of contours from an LVC skymap, say from:
https://lscsoft.docs.ligo.org/ligo.skymap/ligo/skymap/postprocess/contour.html#module-ligo.skymap.postprocess.contour

Is there any way to check if the point is within one of the contours within ligo.skymap itself?

Right now, the only options seem to be a) plot it and look or b) use OpenCV or something else to construct the contours and check, but I'm not sure this is right because I think the latter is assuming the geometry is flat, and these are contours on the surface of a sphere.

Also,right now we're querying a region with a 2 degree radius around the RA, Dec and determining what the total probability in that disc is. Is there any LVC guidelines on what a reasonable threshold is for the total probability in a disc around some RA, Dec for a potential EM counterpart?

Cheers,
-Gautham

ERROR: Failed building wheel for numpy

Dependency on numpy 1.19.3 is preventing installation (ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects), could the pyproject.toml be updated with a more recent version of numpy?

Vulnerable shared libraries might make ligo.skymap vulnerable. Can you help upgrade to patch versions?

Hi, @lpsinger , @titodalcanton , I'd like to report a vulnerability issue in ligo-skymap_0.6.1.

Dependency Graph between Python and Shared Libraries

image

Issue Description

As shown in the above dependency graph (Here shows part of the dependency graph, which depends on vulnerable shared libraries), ligo-skymap_0.6.1 directly or transitively depends on 3 C libraries (.so). However, I noticed that one C library is vulnerable, containing the following CVEs:
libcfitsio-16f89096.so.2.3.37from C project cfitsio(version:3.370) exposed 2 vulnerabilities:
CVE-2018-3848,CVE-2018-3849

Suggested Vulnerability Patch Versions

cfitsio has fixed the vulnerabilities in versions >=3.49

Python build tools cannot report vulnerable C libraries, which may induce potential security issues to many downstream Python projects.
As a popular python package (ligo-skymap has 28,526 downloads per month), could you please upgrade the above shared libraries to their patch versions?

Thanks for your help~
Best regards,
MikeWazowski

Issue importing ligo.skymap

Hi! I used "pip install ligo.skymap", I've tried updating NumPy as suggested in a similar issue before, but I still get the error below.
I'm using Python 3.9.7 on JupyterLab, my computer's Dell XPS 9360, Windows 10 Home v.21H2. Could you help me resolve this?

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_28660/2355149721.py in <module>
----> 1 import ligo.skymap

ModuleNotFoundError: No module named 'ligo'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.