Skip to main content

SAJAX - Stellar Activity Grid for Exoplanets in JAX

Tests codecov License: MIT

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sajax 1.2
File Size Uploaded Provenance Actions
sajax-1.2.tar.gz 47.6 kB With provenance Details for sajax-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sajax 1.2
File Interpreter ABI Platform Actions
sajax-1.2-py3-none-any.whl Python 3 none any Details for sajax-1.2-py3-none-any.whl

Total release size: 91.2 kB

Release files / sajax-1.2.tar.gz

Download URL sajax-1.2.tar.gz
Size 47.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9948e4c6aaf93ba89e2d216b5a8b49321053ef1e053e367f4ea6c3988d00632e
BLAKE2b-256 checksum
How to use checksums
aa8376f156f8024ca9dcdac047ba761c5214c72524448e3c87ec4473998eaeda
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 9, 2026.

Transparency log

Release files / sajax-1.2-py3-none-any.whl

Download URL sajax-1.2-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcefae9934bb617c1d2720d88a866e2ad4a2471e5eefead94ca7a66d70a93e9f
BLAKE2b-256 checksum
How to use checksums
38c7c2449c3f3eae5c5edfbd0a5e3ae025d47200a1f38b3b071b340d9359929c
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 9, 2026.

Transparency log

Security for sajax 1.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sajax-1.2.tar.gz

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 9, 2026.

Transparency log

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.

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