Skip to main content

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

Project description

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.

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

shine_wl-0.0.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

shine_wl-0.0.3-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file shine_wl-0.0.3.tar.gz.

File metadata

  • Download URL: shine_wl-0.0.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shine_wl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 34cee791165df917389216df9f6260ab26e1ecb8fd258cb667f31f8d9abfcf48
MD5 a231fbfcc4a80b4ab4d78a982d5c7e74
BLAKE2b-256 88ded4ae94c473f3e973de644227ffbcd596e62819e303949c9bf71b86fa05a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for shine_wl-0.0.3.tar.gz:

Publisher: release.yaml on CosmoStat/SHINE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shine_wl-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: shine_wl-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shine_wl-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31f611826519c88af65d184bbfb5d21f1c0899ced04e1056c39f0728ad9a45b1
MD5 dce0f53c1d917e1c59970d2836bffc84
BLAKE2b-256 3993b6b84c401086afaf7521e9962ac769bf4778dbb8cbbb35653ac8b7927c79

See more details on using hashes here.

Provenance

The following attestation bundles were made for shine_wl-0.0.3-py3-none-any.whl:

Publisher: release.yaml on CosmoStat/SHINE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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