jaxstar
Fast stellar isochrone fitting with HMC/NUTS, powered by JAX and NumPyro. The method is described in Masuda (2022).
Installation
jaxstar requires Python 3.10 or later. Install the released package from PyPI:
python -m pip install jaxstar
For development and testing from a source checkout:
python -m pip install -e ".[test]"
MIST grid data
MistFit() and MistGridIso() use the MIST v1.2 synthetic photometry grid.
On first use, jaxstar downloads the source CMD archive, generates the NumPy
grid, and stores it in the platform-specific user cache. Later environments
and reinstalls reuse that cached grid automatically.
To use a grid at a specific path:
from jaxstar.mistfit import MistFit
fit = MistFit(path="/path/to/mistgrid_iso.npz")
Alternatively, set the JAXSTAR_MISTGRID_PATH environment variable:
export JAXSTAR_MISTGRID_PATH=/path/to/mistgrid_iso.npz
The grid path is resolved in this order:
- explicit
path=...argument; JAXSTAR_MISTGRID_PATH;- the versioned user cache.
If the resolved default cache file is missing, it is generated transparently. The source CMDs come from the MIST synthetic photometry grids.
Optional correction utilities
The core package dependencies are installed automatically. Functions in
jaxstar.utils.correction additionally use:
- dustmaps for Bayestar extinction corrections;
- gaiadr3-zeropoint for Gaia EDR3 parallax zero-point corrections.
Install them when those utilities are needed:
python -m pip install dustmaps gaiadr3-zeropoint
Testing
The default test suite is fast, deterministic, and does not download the full MIST archive:
python -m pytest -q
To run the optional historical full-grid regression test:
JAXSTAR_MISTGRID_PATH=/path/to/mistgrid_iso.npz \
python -m pytest -m full_grid
Examples
Start with the isochrone fitting example, or browse the examples directory.
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 jaxstar-0.1.1.tar.gz.
File metadata
- Download URL: jaxstar-0.1.1.tar.gz
- Upload date:
- Size: 78.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebda2f3fcdebdfc3f8cae8a9f9364eebbbaea406ea3678285debb546209bdca6
|
|
| MD5 |
d48fdc3e2fa9e21136fdee84e75ecd02
|
|
| BLAKE2b-256 |
11e7ed4a75a19b3fd48cab259f43c39e4b15f0d7f23f0b8d12d6ed84ae1a8519
|
Provenance
The following attestation bundles were made for jaxstar-0.1.1.tar.gz:
Publisher:
release.yml on kemasuda/jaxstar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxstar-0.1.1.tar.gz -
Subject digest:
ebda2f3fcdebdfc3f8cae8a9f9364eebbbaea406ea3678285debb546209bdca6 - Sigstore transparency entry: 2402743965
- Sigstore integration time:
-
Permalink:
kemasuda/jaxstar@94387b5319e714261f949e1be87e22e6964ca0ab -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kemasuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94387b5319e714261f949e1be87e22e6964ca0ab -
Trigger Event:
push
-
Statement type:
File details
Details for the file jaxstar-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jaxstar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd36c8fbe9130459fc16e14fe99a817b9e736e8bb1ac955bf52ee19051b9d2ff
|
|
| MD5 |
78c2c8e37da15438d7da95b3bec96a5e
|
|
| BLAKE2b-256 |
570065098927141ba207baa7130e77920092da200b19449737f0d817fc1af715
|
Provenance
The following attestation bundles were made for jaxstar-0.1.1-py3-none-any.whl:
Publisher:
release.yml on kemasuda/jaxstar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaxstar-0.1.1-py3-none-any.whl -
Subject digest:
dd36c8fbe9130459fc16e14fe99a817b9e736e8bb1ac955bf52ee19051b9d2ff - Sigstore transparency entry: 2402744207
- Sigstore integration time:
-
Permalink:
kemasuda/jaxstar@94387b5319e714261f949e1be87e22e6964ca0ab -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kemasuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94387b5319e714261f949e1be87e22e6964ca0ab -
Trigger Event:
push
-
Statement type: