Publications of the Astronomical Society of the Pacific

AMPy: A Flexible Framework for Modeling Gamma-Ray Burst Afterglows

Dylan A. Dutton, Daniel E. Reichart

Key points

From the paper's conclusion
  • We demonstrate the modeling capabilities on the multi-wavelength dataset of GRB 221009A and show that AMPy serves as an end-to-end toolkit for parameter estimation, model testing, and interpreting the environments and physics of GRBs.

Abstract

The most powerful and energetic explosions in the known universe—gamma-ray bursts (GRBs)—originate from the collapse of massive stars or the merger of compact objects. Often marking the birth of a black hole, GRBs produce broadband emission via synchrotron radiation as the resulting ultra-relativistic jet interacts with the surrounding medium. This emission, known as the afterglow, carries rich information about the nature of the burst and its environment. Yet, despite strong theoretical motivation, and mounting observational evidence, for diverse density structures, many existing modeling tools remain tied to fixed environmental prescriptions (e.g., constant-density or idealized stellar-wind profiles) and lack flexible, unified approaches for statistical inference and model comparison. To address these limitations, we present AMPy (Afterglow Modeling in Python), a modular framework for Bayesian inference that combines a highly optimized, analytic forward-shock model that supports arbitrary power-law density profiles with a statistical framework that consistently incorporates systematic and statistical uncertainties across heterogeneous and multi-wavelength datasets. AMPy also supports seamless integration of user-defined models through a plugin architecture, allowing competing physical prescriptions to be evaluated and compared within an identical inference pipeline. We demonstrate the modeling capabilities on the multi-wavelength dataset of GRB 221009A and show that AMPy serves as an end-to-end toolkit for parameter estimation, model testing, and interpreting the environments and physics of GRBs.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

AMPy: A Flexible Framework for Modeling Gamma-Ray Burst Afterglows — Science Skim