Skip to main content

BayeSN for strongly-lensed Type Ia supernovae time-delay cosmography

Project description

bayesn-td

BayeSN for strongly-lensed Type Ia supernovae time-delay cosmography.

bayesn-td extends the BayeSN hierarchical SED model to jointly fit multiply-imaged Type Ia supernovae, inferring time delays, magnification ratios, and (optionally) achromatic microlensing effects using JAX/NumPyro.

The method is described in Grayling et al. (2026), MNRAS, 548, 2 (arXiv:2510.11719).

Documentation

Full documentation is hosted at bayesn-td.readthedocs.io.

Installation

pip install .

For development:

pip install -e .

Requirements

  • Python >= 3.11
  • JAX, NumPyro, NumPy, SciPy, pandas, Matplotlib, Astropy, h5py, extinction, ArviZ, ruamel.yaml, tqdm

Usage

A complete working example with simulated LSST photometry of a 3-image lensed SN Ia is bundled in examples/sim_lensed_sn/.

Command line

run_bayesn_td examples/sim_lensed_sn/input.yaml

Python API

from bayesn_td import SEDmodel

model = SEDmodel()
samples = model.fit_lensed_sn(
    photometry='examples/sim_lensed_sn/photometry.ecsv',
    output='results/sim_lensed_sn',
)

See examples/sim_lensed_sn/README.md for the true input parameters used to generate the simulation.

Citation

If you use bayesn-td in your research, please cite Grayling et al. (2026):

@article{Grayling2026,
    title        = {BayeSN-TD: Time Delay and $H_0$ Estimation for Lensed SN H0pe},
    author       = {Grayling, M. and Thorp, S. and Mandel, K. S. and Pascale, M. and Pierel, J. D. R. and Hayes, E. E. and Larison, C. and Agrawal, A. and Narayan, G.},
    journal      = {Monthly Notices of the Royal Astronomical Society},
    volume       = {548},
    number       = {2},
    year         = {2026},
    doi          = {10.1093/mnras/stag340},
    eprint       = {2510.11719},
    archivePrefix = {arXiv},
    primaryClass = {astro-ph.CO},
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bayesn_td-0.1.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bayesn_td-0.1.0-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file bayesn_td-0.1.0.tar.gz.

File metadata

  • Download URL: bayesn_td-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bayesn_td-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b83c15ffc1b5cb1a470863c4825c3c9e1ac3860f8d61fbfd2c11494628b25cc
MD5 0ee48cd59051887a10033ba2a6e533c0
BLAKE2b-256 74f5e601c91899b3eb877455da67f18954de3527fb2d5309666cade60c595e2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for bayesn_td-0.1.0.tar.gz:

Publisher: publish.yml on bayesn/bayesn-td

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bayesn_td-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bayesn_td-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bayesn_td-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eed9ec059e82bd5867be21c0f68e333d2143561d2edaccb8e886e00c4d3d74bd
MD5 753928d82c669c694371aa281bdf58c3
BLAKE2b-256 b4b4e5134a82ab1b07904630b4efc2399ae8067c8cff15eb96c68cb781ac729d

See more details on using hashes here.

Provenance

The following attestation bundles were made for bayesn_td-0.1.0-py3-none-any.whl:

Publisher: publish.yml on bayesn/bayesn-td

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page