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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a3232bd5f1e03689bebeac9742c14b781edb44b214592a62105d4fd3fe1e694
|
|
| MD5 |
42e1c36cc54e12b842737c7ff2dbb782
|
|
| BLAKE2b-256 |
1a04bf7700627d60244807b280c6bfac0887167eeca6b8133cd1aa4c3e1d5b6b
|
Provenance
The following attestation bundles were made for bayesn_td-0.1.1.tar.gz:
Publisher:
publish.yml on bayesn/bayesn-td
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bayesn_td-0.1.1.tar.gz -
Subject digest:
8a3232bd5f1e03689bebeac9742c14b781edb44b214592a62105d4fd3fe1e694 - Sigstore transparency entry: 1327393175
- Sigstore integration time:
-
Permalink:
bayesn/bayesn-td@7eef218a8dead030aab9ef38274f9881e83699f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/bayesn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7eef218a8dead030aab9ef38274f9881e83699f9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08401f418408de9a7306616b4f9572c7bc68b784768d94d34299547d6d192acc
|
|
| MD5 |
2520c37b41dd58a441e82fa10336ef70
|
|
| BLAKE2b-256 |
67342483eb7cfa2b3caab7882df745557a12d61c686cfa0b96a4fc7f8db4ac1e
|
Provenance
The following attestation bundles were made for bayesn_td-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on bayesn/bayesn-td
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bayesn_td-0.1.1-py3-none-any.whl -
Subject digest:
08401f418408de9a7306616b4f9572c7bc68b784768d94d34299547d6d192acc - Sigstore transparency entry: 1327393294
- Sigstore integration time:
-
Permalink:
bayesn/bayesn-td@7eef218a8dead030aab9ef38274f9881e83699f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/bayesn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7eef218a8dead030aab9ef38274f9881e83699f9 -
Trigger Event:
push
-
Statement type: