Skip to main content

Cosmological summary statistics from galaxy catalogues and lensing data

Project description

sum_stat

PyPI version License: MIT Python 3.11+ CI Documentation

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

pip install sum-stat

See pypi.org/project/sum-stat for details.

Citation

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).

Contributing

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

License

MIT — see 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

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

sum_stat-0.2.0.tar.gz (83.6 kB view details)

Uploaded Source

Built Distribution

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

sum_stat-0.2.0-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

Details for the file sum_stat-0.2.0.tar.gz.

File metadata

  • Download URL: sum_stat-0.2.0.tar.gz
  • Upload date:
  • Size: 83.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sum_stat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 99f826ff5be094d6642f2a954a22944a8bd1db3e39760da3624e57f04e126926
MD5 e0cce918175a8787933cef6b5974047c
BLAKE2b-256 38e6b61eeb1360d60b5603047f555e252659d53c343872f8d2111fa244629dac

See more details on using hashes here.

Provenance

The following attestation bundles were made for sum_stat-0.2.0.tar.gz:

Publisher: release.yml on JohanComparat/sum_stat

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

File details

Details for the file sum_stat-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sum_stat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 71.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sum_stat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b27244ceaa0a39632d31c281dacc3c6aeaaf4be7fd354221aa2531c4104775f2
MD5 12b3eb1663cd8ab28958f1efe37530ea
BLAKE2b-256 297be9202f45a13a8e0906f32ee5829d8c72b12e6509519b89c6472a14d83871

See more details on using hashes here.

Provenance

The following attestation bundles were made for sum_stat-0.2.0-py3-none-any.whl:

Publisher: release.yml on JohanComparat/sum_stat

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