Prost is a library for rapidly associating transients with their host galaxies.
The code calculates the posterior probability that each galaxy in a search region is the true host galaxy, by considering the transient's fractional offset, redshift (or the prior for the survey), and brightness. The code supports the following catalogs:
The code also estimates the posterior probability that the true host lies outside of the search cone or is missing from the search catalog. The priors and likelihoods for each property can be customized according to the transient survey. Using the code is straightforward:
import pandas as pd
from astro_prost import associate_sample
from scipy.stats import gamma, halfnorm, uniform
# define a transient catalog
transient_catalog = pd.DataFrame({
'name': ['MyTransient'],
'ra': [237.1981094],
'dec': [9.2000414]
})
# define a set of catalogs to search -- options are glade, decals, panstarrs, and skymapper
catalogs = ["decals"]
# define priors and likelihoods
priorfunc_offset = uniform(loc=0, scale=10)
likefunc_offset = gamma(a=0.75)
priors = {"offset": priorfunc_offset}
likes = {"offset": likefunc_offset}
# associate
hosts = \
associate_sample(
transient_catalog,
priors=priors,
likes=likes,
catalogs=catalogs,
name_col='name',
coord_cols=('ra', 'dec'),
save=False
)
If you find Prost useful for your work, please cite the Zenodo release:
@software{Gagliano2025_Prost,
author = {Alex Gagliano and
Kaylee de Soto and
Adam Boesky and
T. Andrew Manning},
title = {alexandergagliano/Prost: v1.2.11},
month = may,
year = 2025,
publisher = {Zenodo},
version = {v1.2.11},
doi = {10.5281/zenodo.15397886},
url = {https://doi.org/10.5281/zenodo.15397886},
}
Questions? Functionality you'd like to see? Report an issue or reach out at gaglian2[at]mit.edu.
This project was automatically generated using the LINCC-Frameworks python-project-template.
Metadata
Release files for astro-prost 1.2.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astro_prost-1.2.13.tar.gz | 84.6 MB | Without provenance | Details for astro_prost-1.2.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astro_prost-1.2.13-py3-none-any.whl | Python 3 | none | any | Details for astro_prost-1.2.13-py3-none-any.whl |
Total release size: 167.0 MB
Release files / astro_prost-1.2.13.tar.gz
| Download URL | astro_prost-1.2.13.tar.gz |
|---|---|
| Size | 84.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
950c63f502b84632f5ff88aba31dd963d4b1202d3321715d600595d7892cdf7a
|
|
BLAKE2b-256 checksum How to use checksums |
e6dc202300a2d0bdbf51822e8bc5f16ee8260c4703c619d911717c052c889724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / astro_prost-1.2.13-py3-none-any.whl
| Download URL | astro_prost-1.2.13-py3-none-any.whl |
|---|---|
| Size | 82.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecce80548be3552a8476bc73ac65c159ac57e294c50d4e6b50ae4ace872b7222
|
|
BLAKE2b-256 checksum How to use checksums |
56dc0acd75c2d70d1427dc2810ea5bc443b008edf7da6206966c8e919c5236dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for astro-prost 1.2.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.