ELISA : A Bayesian X/ γ -Ray Spectral Analysis Toolkit
Abstract Forward-folded X/ γ -ray spectral fitting increasingly benefits from Bayesian workflows to better capture counting statistics, background uncertainties, and complex parameter degeneracies, while fully reproducible end-to-end implementations are still not always straightforward to deploy in routine analyses. We present the Efficient Library for Spectral Analysis ( ELISA ), an open-source Python toolkit that streamlines the full spectral analysis loop for X/ γ -ray astronomy: data loading, model construction, inference, and model validation and comparison. ELISA couples a JAX -accelerated forward model with a unified fitting interface, supporting both rapid optimization and modern Bayesian sampling. Built-in diagnostics make convergence checks and predictive assessment a standard part of the workflow, motivating principled model refinement when needed. Using a spectral fitting example of the Insight-HXMT Crab observation, we find substantial improvements in sampling efficiency compared with XSPEC ’s default Markov Chain Monte Carlo implementation. ELISA is available at https://github.com/wcxve/elisa and on PyPI at https://pypi.org/project/astro-elisa .
Authors
- Sheng-Lun Xie (ORCID: https://orcid.org/0000-0001-9217-7070)
- Wangchen Xue (ORCID: https://orcid.org/0000-0001-8664-5085)
- Xiao-Bo Li (ORCID: https://orcid.org/0000-0003-4585-589X)
- Chao Zheng (ORCID: https://orcid.org/0009-0001-7226-2355)
- Zheng-Hang Yu (ORCID: https://orcid.org/0009-0002-6411-8422)
- Yan-Qiu Zhang (ORCID: https://orcid.org/0000-0001-5348-7033)
- Yue Wang (ORCID: https://orcid.org/0009-0008-5068-3504)
- Jin-Peng Zhang (ORCID: https://orcid.org/0009-0007-6192-0213)
- Peng Zhang (ORCID: https://orcid.org/0000-0002-8097-3616)
- Chen-Wei Wang (ORCID: https://orcid.org/0009-0008-8053-2985)
- Shao-Lin Xiong (ORCID: https://orcid.org/0000-0002-4771-7653)
- Jia-Cong Liu (ORCID: https://orcid.org/0009-0004-1887-4686)
- Yong Chen (ORCID: https://orcid.org/0000-0001-9834-2196)
- Wen-Jun Tan (ORCID: https://orcid.org/0009-0006-5506-5970)
Institutions
- Tongji University (CN)
- Jinggangshan University (CN)
- Guizhou Normal University (CN)
- Chinese Academy of Sciences (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- The Astrophysical Journal Supplement Series
- Published
- 2026-11-13
- DOI
- https://doi.org/10.3847/1538-4365/aeb4b2
- Primary Topic
- Astrophysical Phenomena and Observations
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Chinese Academy of Sciences