Gammapy v2.0: An upgrade of the Python package for gamma-ray astronomy
Gammapy v2.0: An upgrade of the Python package for gamma-ray astronomy
Gammapy team, K. Feijen, Q. Remy, A. Sinha, R. Terrier, A. Donath, F. Acero, T. Bylund, C. Galelli, B. Khélifi, D. Berge, C. Boisson, J. L. Contreras, S. Funk, M. Füßling, J. Hinton, R. López-Coto, F. Pintore, E. de Oña Wilhelmi, C. van Eldik, R. Zanin, A. Aguasca-Cabot, T. Arnesen, L. Barrios-Jimenez, J. Bernete, N. Biederbeck, J. Buchner, J. Djuvsland, K. Egg, G. Emery, S. Fröse, L. Gréaux, J. Konrad, P. Kornecki, M. Linhoff, M. Lundy, K. McKee, S. Mender, E. Molina, L. Mohrmann, D. Morcuende, M. Nievas Rosillo, L. Olivera-Nieto, S. Panny, R. D. Parsons, N. Pigoux, M. Peresano, T. Preis, M. Punch, M. Regeard, G. Roellinghoff, L. Schlegel, B. M. Sipőcz, H. Stapel, K. Streil, G. S. Subramanya, M. Takahashi, T. Unbehaun, S. Wong, P. Yu
AbstractOpen-source, community-driven software is increasingly central to modern astronomy, enabling reproducible and transparent high-level science analysis across multiple instruments and collaborations. Gammapy, an open-source Python package for γ-ray astronomy, provides a unified analysis framework accessible to the high-energy astrophysics community. In this paper, we present the second long term release of Gammapy, v2.0, introducing major statistical and methodological improvements to the analysis framework compared to paper for Gammapy, v1.0. New features include a joint test statistic and combined significance map estimation over multiple datasets, improved spectral uncertainty estimation via parameter sampling, Bayesian inference through nested sampling, a generalised sensitivity estimation framework, an energy-dependent morphology estimator, and new timing analysis utilities. Improvements have also been made in the documentation and the developer operations. As examples of the newly implemented features, we show combined significance maps from Fermi-LAT and H.E.S.S. observations for RX J1713.7-3946 and a HAWC sensitivity for an extended source with multiple event types. Comparison of "butterfly plots" between the previous version and current implementation are shown, as well as detailed discussions on upper limit calculations for very weak/non-existent sources. The power of nested sampling in probing multi-modal distributions is compared with traditional fitting results using a gradient descent from the minuit minimizer. Gammapy v2.0 consolidates a unified, instrument-agnostic framework for current and next-generation γ-ray observatories within a common analysis environment. Compared to the previous stable release, v2.0 brings significantly greater statistical rigour, equipping the community with more robust and trustworthy tools for high-level science analysis.