Python wrapper package for measuring cosmological summary statistics from galaxy catalogues and lensing data. Careful, this is an early version, use at own risk !
- Stellar mass function
- Angular correlation function
- Projected correlation function
- Excess surface density (galaxy-galaxy lensing)
pip install sum-statSee pypi.org/project/sum-stat for details.
If you use sum_stat in your research, please cite it as:
@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).
Contributions are welcome! Please read CONTRIBUTING.md for development setup, coding conventions, and how to submit a pull request.
MIT — see LICENSE.
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