Modeling Binary Lenses and Sources with the BAGLE Python Package
T. Dex Bhadra, J. R. Lu, Natasha S. Abrams, Andrew Scharf, Edward Broadberry, Casey Lam, Macy J. Huston
TL;DR
This work extends the BAGLE Python package to robustly model binary microlensing systems by incorporating complete Keplerian orbital motion and efficient linear/accelerated approximations. It develops comprehensive BSPL, PSBL, and BSBL formalisms, using Thiele–Innes constants and cordoned Keplerian elements $ (oldsymbol{ earrow ext{eight elements}}) $ to compute sky-plane trajectories, including center-of-mass motion and parallactic effects. Validation against established microlensing tools shows good agreement with small discrepancies arising from parallax implementations and root-solving vs contour methods, while demonstrating BAGLE’s competitive runtimes for many scenarios. The results emphasize the value of joint photometric and astrometric fitting in breaking degeneracies and enabling precise mass and orbital determinations for binary lenses and sources, with direct relevance to Rubin Observatory and Roman Telescope datasets and dark-lens searches. BAGLE thus provides a versatile framework for simulating and fitting complex binary microlensing events, paving the way for improved measurements of compact objects like black holes and exoplanets in forthcoming surveys.
Abstract
Gravitational microlensing is a powerful tool that can be used to find and measure the mass of isolated and dark compact objects. In many microlensing events, the lens, the source, or both may be a binary system. Therefore, in this study we present lensing equations for binary source and lens models in the Bayesian Analysis of Gravitational Lensing Events (BAGLE) Python microlensing package. The new binary source and lens models in BAGLE account for the complete Keplerian orbit. BAGLE also includes binary models that approximate the orbital motion as linear or accelerating motion of the secondary companion; these are useful when the orbit has a very low eccentricity or the orbital period is much longer than the microlensing timescale. The model parameterizations based on these binary lensing equations will enable joint fitting of photometric and astrometric data sets. Consequently, binary microlensing events with complex astrometric trajectories can be used to break several microlensing degeneracies that plague photometry-only microlensing modeling. These binary models will be used to fit microlensing event data from the Vera C. Rubin Observatory, the Nancy Grace Roman Telescope, and other surveys.
