Metadata-Version: 2.4
Name: sum_stat
Version: 0.2.0
Summary: Cosmological summary statistics from galaxy catalogues and lensing data
Author-email: Johan Comparat <johan.comparat@pm.me>
License: MIT License
        
        Copyright (c) 2026 Johan Comparat
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/JohanComparat/sum_stat
Project-URL: Documentation, https://sum-stat.readthedocs.io
Project-URL: Repository, https://github.com/JohanComparat/sum_stat
Project-URL: Bug Tracker, https://github.com/JohanComparat/sum_stat/issues
Keywords: cosmology,summary statistics,galaxy surveys,JAX,two-point correlation,luminosity function,stellar mass function,galaxy-galaxy lensing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: astropy
Requires-Dist: matplotlib
Requires-Dist: jax
Requires-Dist: jaxlib
Requires-Dist: h5py
Requires-Dist: healpy
Requires-Dist: treecorr
Requires-Dist: corrfunc
Requires-Dist: dsigma
Requires-Dist: numba
Requires-Dist: tqdm
Requires-Dist: pandas
Requires-Dist: scikit-learn
Requires-Dist: pyfnntw
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: sphinxcontrib-napoleon; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: myst-parser; extra == "docs"
Dynamic: license-file

# sum_stat

[![PyPI version](https://img.shields.io/pypi/v/sum-stat)](https://pypi.org/project/sum-stat/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
[![CI](https://github.com/JohanComparat/sum_stat/actions/workflows/ci.yml/badge.svg)](https://github.com/JohanComparat/sum_stat/actions/workflows/ci.yml)
[![Documentation](https://readthedocs.org/projects/sum-stat/badge/?version=latest)](https://sum-stat.readthedocs.io/en/latest/)

Python package for measuring cosmological summary statistics from galaxy catalogues and lensing data.

## Stable estimators

* Stellar mass function
* Angular correlation function
* Projected correlation function
* Excess surface density (galaxy-galaxy lensing)

## Installation

```bash
pip install sum-stat
```

See [pypi.org/project/sum-stat](https://pypi.org/project/sum-stat/) for details.

## Citation

If you use `sum_stat` in your research, please cite it as:

```bibtex
@software{comparat2026sumstat,
  author  = {Comparat, Johan},
  title   = {{sum\_stat}: Cosmological summary statistics from galaxy catalogues and lensing data}, 
  year    = {2026},
  version = {0.2.0},
  url     = {https://github.com/JohanComparat/sum_stat},
  license = {MIT},
}
```

A `CITATION.cff` file is also provided for automated citation tools (GitHub "Cite this repository" button).

## Contributing

Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, coding conventions, and how to submit a pull request.

## License

MIT — see [LICENSE](LICENSE).

## Package structure

```
sum_stat/
├── sum_stat/
│   ├── catalogue.py       # GalaxyCatalogue, ShapeCatalogue, PhotoZCalibTable
│   ├── cosmology.py       # JAX-differentiable distances and Σ_crit
│   ├── covariance/        # jackknife_covariance, bootstrap_covariance
│   ├── io/                # SummaryStatWriter, SummaryStatReader
│   ├── lensing/           # delta_sigma
│   ├── lf_smf/            # 1/Vmax, SWML, C⁻, EP τ, Rauzy
│   ├── nz/                # nz_histogram, nz_kde
│   ├── powspec/           # cl_angular, pk3d, pk_multipoles  [development]
│   └── twopcf/            # w_theta, wp, xi_r, xi_multipoles
├── tests/
├── docs/
├── environment.yml
└── pyproject.toml
```
