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.1.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.1-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bayesn_td-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8a3232bd5f1e03689bebeac9742c14b781edb44b214592a62105d4fd3fe1e694
MD5 42e1c36cc54e12b842737c7ff2dbb782
BLAKE2b-256 1a04bf7700627d60244807b280c6bfac0887167eeca6b8133cd1aa4c3e1d5b6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for bayesn_td-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: bayesn_td-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08401f418408de9a7306616b4f9572c7bc68b784768d94d34299547d6d192acc
MD5 2520c37b41dd58a441e82fa10336ef70
BLAKE2b-256 67342483eb7cfa2b3caab7882df745557a12d61c686cfa0b96a4fc7f8db4ac1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for bayesn_td-0.1.1-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