Skip to main content

SHINE: SHear INference Environment

SHINE Logo

A JAX-powered framework for probabilistic shear estimation in weak gravitational lensing

Python JAX PyPI Docs License All Contributors


🌟 Overview

SHINE (SHear INference Environment) is a modern, high-performance framework for probabilistic shear estimation in weak gravitational lensing studies. Built on JAX, it leverages automatic differentiation and just-in-time compilation to deliver fast, scalable inference for cosmological applications.

✨ Key Features

  • 🚀 JAX-powered: Automatic differentiation and JIT compilation for optimal performance
  • 📊 Probabilistic Inference: Full posterior distributions for shear estimates
  • 🔧 Modular Design: Flexible architecture for easy extension and customization
  • 🎯 GPU Acceleration: Seamless GPU support for large-scale analyses
  • 📈 Scalable: Efficient handling of large imaging surveys

📦 Installation

pip install shine-wl

For development (editable install from source):

git clone https://github.com/CosmoStat/SHINE.git
cd SHINE
pip install -e ".[dev,test]"

🚀 Quick Start

Run inference from a config file

SHINE is driven by YAML configuration files. Any parameter specified as a distribution (e.g. type: Normal) becomes a latent variable; everything else is fixed. To run the full pipeline (data generation → model building → MCMC):

python -m shine.main --config configs/test_run.yaml

Results (posterior samples in NetCDF format) are saved to the results/ directory by default. Override with --output:

python -m shine.main --config configs/test_run.yaml --output my_output/

Pedagogical example

For a step-by-step walkthrough that builds the config inline and plots diagnostics, see examples/shear_inference.py:

python examples/shear_inference.py

📖 Documentation

Full documentation is available at cosmostat.github.io/SHINE, including:

🏗️ Status

⚠️ Early Development: This project is under active development. APIs may change.

🤝 Contributing

We welcome contributions! This project is in early development, and we're excited to collaborate with the community. Thanks goes to these wonderful people (emoji key):

Ezequiel Centofanti
Ezequiel Centofanti

🤔 📆
Samuel Farrens
Samuel Farrens

🤔 📆
Emma Ayçoberry
Emma Ayçoberry

🤔 📆
Francois Lanusse
Francois Lanusse

🤔 📆

This project follows the all-contributors specification. Contributions of any kind welcome!


Born at CosmoStat, built with ❤️ for the astro community.

Release files for shine-wl 0.0.3

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

Source distribution (sdist)

Source distribution for shine-wl 0.0.3
File Size Uploaded
shine_wl-0.0.3.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for shine-wl 0.0.3
File Interpreter ABI Platform
shine_wl-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / shine_wl-0.0.3.tar.gz

Download URL shine_wl-0.0.3.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
34cee791165df917389216df9f6260ab26e1ecb8fd258cb667f31f8d9abfcf48
BLAKE2b-256 checksum
How to use checksums
88ded4ae94c473f3e973de644227ffbcd596e62819e303949c9bf71b86fa05a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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

Transparency log

Release files / shine_wl-0.0.3-py3-none-any.whl

Download URL shine_wl-0.0.3-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f611826519c88af65d184bbfb5d21f1c0899ced04e1056c39f0728ad9a45b1
BLAKE2b-256 checksum
How to use checksums
3993b6b84c401086afaf7521e9962ac769bf4778dbb8cbbb35653ac8b7927c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

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