Metadata-Version: 2.4
Name: shine-wl
Version: 0.0.3
Summary: A JAX-powered framework for probabilistic shear estimation in weak gravitational lensing
Author: SHINE Developers
License-Expression: MIT
Project-URL: Homepage, https://github.com/CosmoStat/SHINE
Project-URL: Documentation, https://cosmostat.github.io/SHINE/
Project-URL: Repository, https://github.com/CosmoStat/SHINE
Project-URL: Issues, https://github.com/CosmoStat/SHINE/issues
Keywords: cosmology,weak-lensing,shear,jax,astronomy
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jax>=0.4.0
Requires-Dist: numpyro>=0.13.0
Requires-Dist: galsim>=2.5.0
Requires-Dist: jax-galsim>=2026.2.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: arviz>=0.17.0
Requires-Dist: matplotlib>=3.7.0
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Requires-Dist: pytest-cov>=4.0; extra == "test"
Provides-Extra: dev
Requires-Dist: black>=23.0; extra == "dev"
Requires-Dist: isort>=5.12; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.0; extra == "docs"
Requires-Dist: mkdocstrings[python]>=0.24; extra == "docs"
Dynamic: license-file

# SHINE: SHear INference Environment

<div align="center">
  <img src="https://raw.githubusercontent.com/CosmoStat/SHINE/main/assets/logo.png" alt="SHINE Logo" width="1024"/>

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

  [![Python](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/)
  [![JAX](https://img.shields.io/badge/JAX-latest-green.svg)](https://github.com/google/jax)
  [![PyPI](https://img.shields.io/pypi/v/shine-wl.svg)](https://pypi.org/project/shine-wl/)
  [![Docs](https://img.shields.io/badge/docs-cosmostat.github.io%2FSHINE-7c4dff.svg)](https://cosmostat.github.io/SHINE/)
  [![License](https://img.shields.io/badge/license-MIT-orange.svg)](LICENSE) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
  [![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg)](#contributors-)
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
</div>

---

## 🌟 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

```bash
pip install shine-wl
```

For development (editable install from source):

```bash
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):

```bash
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`:

```bash
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`:

```bash
python examples/shear_inference.py
```

## 📖 Documentation

Full documentation is available at **[cosmostat.github.io/SHINE](https://cosmostat.github.io/SHINE/)**, including:

- [Getting Started](https://cosmostat.github.io/SHINE/getting-started/) — installation and first run
- [Configuration Reference](https://cosmostat.github.io/SHINE/configuration/) — YAML config specification
- [Validation Pipeline](https://cosmostat.github.io/SHINE/validation/) — bias measurement infrastructure
- [API Reference](https://cosmostat.github.io/SHINE/api/config/) — auto-generated from docstrings

## 🏗️ 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](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="25%"><a href="https://centofantieze.github.io"><img src="https://avatars.githubusercontent.com/u/42658822?v=4?s=100" width="100px;" alt="Ezequiel Centofanti"/><br /><sub><b>Ezequiel Centofanti</b></sub></a><br /><a href="#ideas-CentofantiEze" title="Ideas, Planning, & Feedback">🤔</a> <a href="#projectManagement-CentofantiEze" title="Project Management">📆</a></td>
      <td align="center" valign="top" width="25%"><a href="http://sfarrens.github.io"><img src="https://avatars.githubusercontent.com/u/6851839?v=4?s=100" width="100px;" alt="Samuel Farrens"/><br /><sub><b>Samuel Farrens</b></sub></a><br /><a href="#ideas-sfarrens" title="Ideas, Planning, & Feedback">🤔</a> <a href="#projectManagement-sfarrens" title="Project Management">📆</a></td>
      <td align="center" valign="top" width="25%"><a href="https://github.com/Emmaaycoberry"><img src="https://avatars.githubusercontent.com/u/80262003?v=4?s=100" width="100px;" alt="Emma Ayçoberry"/><br /><sub><b>Emma Ayçoberry</b></sub></a><br /><a href="#ideas-Emmaaycoberry" title="Ideas, Planning, & Feedback">🤔</a> <a href="#projectManagement-Emmaaycoberry" title="Project Management">📆</a></td>
      <td align="center" valign="top" width="25%"><a href="http://flanusse.net/"><img src="https://avatars.githubusercontent.com/u/861591?v=4?s=100" width="100px;" alt="Francois Lanusse"/><br /><sub><b>Francois Lanusse</b></sub></a><br /><a href="#ideas-EiffL" title="Ideas, Planning, & Feedback">🤔</a> <a href="#projectManagement-EiffL" title="Project Management">📆</a></td>
    </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

---

<div align="center">
  Born at <a href="https://www.cosmostat.org/">CosmoStat</a>, built with ❤️ for the astro community.
</div>
