SAJAX - Stellar Activity Grid for Exoplanets in JAX
SAJAX is a package that models contamination of exoplanet spectro-photometric time series by active regions (spots, faculae, and flares) on the stellar surface. Its core functionality builds on SAGE (Chakraborty et al. 2024), and it draws additional inspiration from ANTARESS (Bourrier et al. 2024).
The main innovation over SAGE is that SAJAX vectorises the spatial and spectral loops with jax.vmap, making it fast on both CPU and GPU - with no change to the calling code - and fully differentiable, enabling gradient-based inference with tools like NumPyro or Optax.
The full documentation can be found at sajax.readthedocs.io
Installation
pip install sajax
Or in development mode from a local clone. setup_env.sh builds a
uv-managed .venv pinned by uv.lock, so every
machine gets identical package versions:
git clone https://github.com/SamMerc/sajax.git
cd sajax
./setup_env.sh # auto-detect: GPU if nvidia-smi sees a device
Useful flags: --cpu / --gpu to override the auto-detection (state --gpu
explicitly when provisioning on a GPU-less HPC login node), --docs to add the
sphinx dependencies, --examples to add the dependencies used in the example notebooks,
and --check to report what is already installed.
Run commands in the environment with uv run <cmd> (e.g. uv run pytest), or
activate it with source .venv/bin/activate.
Repository layout
sajax/
├── sajax/
│ ├── __init__.py # public API
│ ├── core.py # JAX light-curve engine
│ ├── planet.py # planet orbital dynamics
│ ├── geometry.py # rotation matrices, coordinate transforms
├── docs/
│ ├── examples/
│ │ ├── introduction.ipynb
│ │ ├── inference.ipynb
├── tests/
│ ├── test_core.py
│ ├── test_planet.py
├── pyproject.toml
├── .gitignore
└── README.md
Metadata
Release files for sajax 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sajax-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for sajax-1.2.1-py3-none-any.whl |
Release files / sajax-1.2.1-py3-none-any.whl
| Download URL | sajax-1.2.1-py3-none-any.whl |
|---|---|
| Size | 43.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b4dbea4fedc1992d68e495e32207911c4702b18b85c19230ad4c87429c505ff
|
|
BLAKE2b-256 checksum How to use checksums |
e620b955347af2e9c42c05279db0d42cd35744afabdae34f15bc1cb22238c1b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for sajax 1.2.1
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for sajax-1.2.1-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA 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.