AMPy
AMPy (Afterglow Modeling in Python) is a complete inference package for modeling Gamma-ray burst afterglows. AMPy’s modular design allows easy integration of arbitrary third-party afterglow and extinction models, enabling use beyond the builtin generalized forward-shock implementations. The framework supports integrated-flux calculations for arbitrary bandpasses, spectral-index computation, and multi-band fitting over broadband light curves and spectra.
It interfaces seamlessly with an MCMC sampling backend, providing flexible prior definitions, likelihood customization, and full posterior analysis tools. By combining physical realism with statistical rigor, AMPy serves as an end-to-end toolkit for parameter estimation, model testing, and interpreting the environments and physics of GRBs.
Installation
The code is not published to PyPI yet, so please install it from source:
git clone https://github.com/astrodyl/ampy.git
cd ampy
pip install -e .
Contents