Skip to main content

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:

  1. explicit path=... argument;
  2. JAXSTAR_MISTGRID_PATH;
  3. 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:

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

jaxstar-0.1.1.tar.gz (78.7 kB view details)

Uploaded Source

Built Distribution

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

jaxstar-0.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

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

Hashes for jaxstar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ebda2f3fcdebdfc3f8cae8a9f9364eebbbaea406ea3678285debb546209bdca6
MD5 d48fdc3e2fa9e21136fdee84e75ecd02
BLAKE2b-256 11e7ed4a75a19b3fd48cab259f43c39e4b15f0d7f23f0b8d12d6ed84ae1a8519

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxstar-0.1.1.tar.gz:

Publisher: release.yml on kemasuda/jaxstar

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

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

Hashes for jaxstar-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd36c8fbe9130459fc16e14fe99a817b9e736e8bb1ac955bf52ee19051b9d2ff
MD5 78c2c8e37da15438d7da95b3bec96a5e
BLAKE2b-256 570065098927141ba207baa7130e77920092da200b19449737f0d817fc1af715

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxstar-0.1.1-py3-none-any.whl:

Publisher: release.yml on kemasuda/jaxstar

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page