Skip to main content

Stellar Activity Grid for Exoplanets — JAX implementation

Project description

SAJAX — Stellar Activity Grid for Exoplanets in JAX

Tests codecov

SAJAX is a JAX-accelerated reimplementation of SAGE (Chakraborty et al. 2024), a code that models stellar contamination of exoplanet transmission spectra from active regions (ars, faculae) on the stellar surface.

The key innovation over plain SAGE is that SAJAX vectorises the spectral loop with jax.vmap, making it fast on both CPU and GPU without any change to the calling code, and fully differentiable — enabling gradient-based inference with tools like NumPyro or Optax.

Documentation can be found at sajax.readthedocs.io

Installation

pip install sajax

Or in development mode from a local clone:

git clone https://github.com/SamMerc/sajax.git
cd sajax
pip install -e ".[dev]"

Repository layout

sajax/
├── sajax/
│   ├── __init__.py          # public API
│   ├── core.py              # JAX light-curve engine
│   ├── geometry.py          # rotation matrices, coordinate transforms
├── examples/
│   └── sajax_quickstart.ipynb
├── tests/
│   └── test_core.py
├── pyproject.toml
├── .gitignore
└── README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sajax-0.2.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

sajax-0.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file sajax-0.2.0.tar.gz.

File metadata

  • Download URL: sajax-0.2.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sajax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2d1cec3e592a32554916fdaa5efd1bd46146dbf9d0915891b4d6077ed26e8eab
MD5 0c55b2c45bd448774e5c05139cbdf4fc
BLAKE2b-256 d1afc61943b06c4cc689f704e668dfc5339bec2f536f0be9df70c2adcce33ade

See more details on using hashes here.

File details

Details for the file sajax-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sajax-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sajax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28ec4d45f714b318657efeb99b9fa5ec7b0dc206e01016f46a046db7dac8c0a2
MD5 979820d7d153dfc3812cdbb9a75cfc06
BLAKE2b-256 9cf2eefbf23e776092c06b80863df15758de36a955baae2cf17738d0ecd02822

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page