Skip to main content

Sparse Unbiased Galaxy Clustering - high-performance hybrid Rust/Python correlation functions

Project description

SUGC

PyPI version License: MIT

Correlation function counters for galaxy catalogues drawn from sparse partitions of periodic N-body simulations. Written in Rust with a Python interface via PyO3.

Supports real-space ξ(r), redshift-space ξ(s, μ) multipoles, and high-order N-point functions (N ≥ 3). Pair counts are corrected for the statistical under-sampling that arises when working with m-of-k independent partitions of a simulation box.

Installation

# pip / uv
uv add sugc

# conda
conda install -c conda-forge sugc

Usage

import numpy as np
from sugc import count_pairs_1d

coords = np.random.uniform(0, 500.0, size=(100_000, 3))
partition_ids = np.zeros(100_000, dtype=np.int32)  # single partition
r_bins = np.linspace(0.1, 50.0, 20)

counts, weights = count_pairs_1d(coords, partition_ids, r_bins, box_size=500.0)

See examples/ for redshift-space distortions and 3-point correlation functions.

Citation

If you use this in published work, please cite:

Hickman, O. et al. (2026). Fast and Unbiased Clustering Estimators for Sparse Partitions. (In Prep).

A CITATION.cff is included for software citation via GitHub or Zenodo.

License

MIT — see LICENSE.

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

sugc-0.1.0.tar.gz (388.2 kB view details)

Uploaded Source

Built Distributions

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

sugc-0.1.0-cp39-abi3-win_arm64.whl (173.4 kB view details)

Uploaded CPython 3.9+Windows ARM64

sugc-0.1.0-cp39-abi3-win_amd64.whl (185.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

sugc-0.1.0-cp39-abi3-win32.whl (177.1 kB view details)

Uploaded CPython 3.9+Windows x86

sugc-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl (532.2 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

sugc-0.1.0-cp39-abi3-musllinux_1_2_i686.whl (559.2 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

sugc-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl (597.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

sugc-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl (488.2 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

sugc-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (320.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

sugc-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (354.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ s390x

sugc-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (349.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ppc64le

sugc-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (321.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

sugc-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

sugc-0.1.0-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (334.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.12+ i686

sugc-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (275.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

sugc-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl (285.4 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file sugc-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for sugc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65f3a2a9986587532467460f9ffe326d282dcb8f67ce66018a174fce76589c52
MD5 604150c68c7221f9e9b30b046ffe87cc
BLAKE2b-256 e2897faca9a97b4270493f85de0be661c37e5cc23bbfcb96c5694d38a33e19c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0.tar.gz:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 173.4 kB
  • Tags: CPython 3.9+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 709459ee5a3d4f70a659cb1ff901d8120285d2b142838d4e3b31b68b25dda5a8
MD5 6ef51ba13c77d02ca0291fd1a17fb58d
BLAKE2b-256 84ae7208ea27d45e1dffd01025321fcb547e0a15958432780c40aba942074dda

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-win_arm64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 185.9 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6be3115743fc4319ba3927d215a0d1cc3edbcb0549ef1ae172d751c5be3ff518
MD5 926d82c8d83654881cd93ec49a9e928a
BLAKE2b-256 a36839d2acf3b64e56a6c8a15e0761be506e69f8cb1eb3a17f61c2ecdebeeabb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-win_amd64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-win32.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-win32.whl
  • Upload date:
  • Size: 177.1 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 02e81184535e16b169fa278799f79368d0a2aa73881aff4d2ebcd14f49553d20
MD5 954e3c0d306ec8cbaf8939031ce55b02
BLAKE2b-256 c83a719d413b48416da74a06cb03571259c3683537a23652e8a51ddf7b6885c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-win32.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 532.2 kB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a77fd8e8050cdf88dbe4e4fd1da4078c8b0e080fe8cc2c15b75c12044b94ac6a
MD5 e87ccdc0b88218f01f6d06043a51e8f2
BLAKE2b-256 a02ae723cc65fe52b2f20fac3e527da7d52b6658217cca9af20c774c767e9a74

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 559.2 kB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 38fb00687e62606ec4afde233d9a3e4671e44b32a505aee4f218745154bfa0e4
MD5 57e3d84e565b20afdac9878a1ef161cc
BLAKE2b-256 d506b551dad6b597dfca1a3b2cad72b7d5705da18ed3ab93f46df1fa2c3041f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-musllinux_1_2_i686.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl
  • Upload date:
  • Size: 597.3 kB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ ARMv7l
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 85f4e161c8c0824dfd6a898618b782c74052e5e5446b30296d7067cb0caf145e
MD5 3fa37570762becfac62540d76a9d3ff3
BLAKE2b-256 17084d98e8da97834cfdd9b3c312b1d62367db90bf7cb3293cdd56f284a53734

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-musllinux_1_2_armv7l.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 488.2 kB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 08351323d25a2ff81d9981d4bd1df2c47b95eab9413dd21c1b48ee302bb39e1c
MD5 a0b58e270591aca573dd608ea0464c27
BLAKE2b-256 3326501b3b99a4f4255ec30d7f617425b47a16f3897f75dc9c4cbb6b3dcd5eda

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 734fac637424e7e7da8b948c2c83aceed81ded3ee3ac8bbe51187b1ec47d831d
MD5 681224c2816dfa6a3994012cf27637c8
BLAKE2b-256 190724acd51a5681b690d54da5f36decb30f4f8ace084f17eddf96d92acbe5c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 a3c68ab091e509f23eeb0a766cc237520a42ab51aa7426b44beb3ad87f270fff
MD5 1733ca647d2fa45511398f24852b5cc1
BLAKE2b-256 c9161ba3c2db982a3437b181b39a28087b03e2359bd5afe27a57d75aed07bbf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 f148fa7f3057b819aa31e5e2726594f5b0c943f8575ac117fcc8761f14bc9e0c
MD5 5abe676c29291d1b2699fd6cf9426c23
BLAKE2b-256 09143e81f3a14d416b4f9209451530109b484762ee810984e9b3586904ad79d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 b8af7fb16598cf82ec9c00dfb24157e83c208ad55f9da3d6edf7e0cf2670b8a4
MD5 dca3ce591432b92dbe29c50aeacb6f40
BLAKE2b-256 8c7dafea85bae7435a77d58655e858589ba565aeaee298d22b34afb7c50ac81d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 41ade1d31568a436bd7076a5de57038495cc9a5385f017c368058e7e2c93015b
MD5 3e8f4a242b8c8f70806ddf324dcb7826
BLAKE2b-256 c69bf29ccbcad2a802aa9d6b29f23d04a5a48aa989eb5fb5fc1554c73cb73a16

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for sugc-0.1.0-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 1f2c229eca2c4fc022e1c34301833bb85bb088b23a98a09986aab08e90e93f32
MD5 7c80d50a6da4ceea5f473e892e853afe
BLAKE2b-256 c6712e766252f79fdc8e69f45a568d5c1a4368b27ac081924c60e6d23d3f8544

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.9+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 441071723cdf6d385b734ce74cf9c023b1911e863f4f95ac78f119c186484291
MD5 8f88894c3e6a156f8e080f475c501271
BLAKE2b-256 83d1ac76aab3fc52b60acc98a31e9fba0ca9e26328f7a02ba034ed6de79328ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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

File details

Details for the file sugc-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: sugc-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 285.4 kB
  • Tags: CPython 3.9+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugc-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d34bec061bf12733752cb5a3ed82c0c21f44325551c56d54e3bfec01f2743c54
MD5 1706f744e5a7b7d2e6ca944db6661fae
BLAKE2b-256 d4524dfad5cb6ad4637d44e78346e8ee1212aad6df3fe43dc0a77f1de725fb05

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on OscarHickman/SUGC

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