The BAGLE Python Package for Bayesian Analysis of Gravitational Lensing Events
J. R. Lu, M. Medford, C.Y. Lam, T.D. Bhadra, M.J. Huston, N.S. Abrams, E. Broadberry, J. Chen, S.K. Terry, N. Arredondo, and A. Scharf

TL;DR
BAGLE is an open-source Python package designed for Bayesian modeling and analysis of gravitational microlensing events, supporting joint photometric and astrometric data fitting, with applications for upcoming space missions.
Contribution
The paper introduces BAGLE, a new Python package that models microlensing events with detailed parameterizations, enabling precise analysis for future space-based observations.
Findings
Good agreement with existing microlensing models.
Upcoming space missions will detect significant parallax signals.
Long-duration events can precisely measure black hole masses.
Abstract
We present the open-source Python package, BAGLE (Bayesian Analysis of Gravitational Lensing Events), which enables modeling and joint fitting of photometric and astrometric data sets. We describe the model parameterizations and present the equations for microlensing events containing either a point-source, point-lens or a finite-source, point-lens geometry both with and without microlensing parallax due to the motion of the Earth or a satellite around the Sun. Conversions between different coordinate reference frames are also derived. We compare our model light curves to those from other papers and microlens modeling software, finding good agreement, although with some differences in finite-source models at a ~1% level detectable with upcoming observations from space-based facilities. We also use BAGLE to demonstrate the impact of changing lens mass, lens distance, and blended source…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStellar, planetary, and galactic studies · Gamma-ray bursts and supernovae · Astronomy and Astrophysical Research
