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, 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.1

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.1
File Size Uploaded
sajax-1.1.tar.gz 47.3 kB Details

Built distribution (wheel)

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

Total release size: 90.7 kB

Release files / sajax-1.1.tar.gz

Download URL sajax-1.1.tar.gz
Size 47.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60a95710f390aef4ced1e06759fb09a88d2fa44e168c1103673629d4ba4de23e
BLAKE2b-256 checksum
How to use checksums
4be30b202d1d2c41c213301c559b860ff03c40a9fe80fb2267533c7661b0002e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

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

Download URL sajax-1.1-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ded8382bb6634fd151c52c627bb364a37e78b192c68eb773350f742b32c2e280
BLAKE2b-256 checksum
How to use checksums
8690876100a53398709bddd31d672a236583854baef795d6eb2b0a160e5f89b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release 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