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.1.tar.gz (388.8 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.1-cp39-abi3-win_arm64.whl (173.7 kB view details)

Uploaded CPython 3.9+Windows ARM64

sugc-0.1.1-cp39-abi3-win_amd64.whl (186.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

sugc-0.1.1-cp39-abi3-win32.whl (176.9 kB view details)

Uploaded CPython 3.9+Windows x86

sugc-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl (530.5 kB view details)

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

sugc-0.1.1-cp39-abi3-musllinux_1_2_i686.whl (557.5 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

sugc-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl (597.6 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

sugc-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl (488.5 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

sugc-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (320.4 kB view details)

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

sugc-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (354.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ s390x

sugc-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (350.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ppc64le

sugc-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (321.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

sugc-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

sugc-0.1.1-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (337.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.12+ i686

sugc-0.1.1-cp39-abi3-macosx_11_0_arm64.whl (275.8 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

sugc-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl (285.6 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: sugc-0.1.1.tar.gz
  • Upload date:
  • Size: 388.8 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.1.tar.gz
Algorithm Hash digest
SHA256 4c9d638fba423da970ce9db8862f466a508fc972f220fca51f1440010613feab
MD5 17492e5f736f70b72ccfb3472a931f46
BLAKE2b-256 d47c9fe3621add5bb72fb676e6d3155eb4c666ea299158d0aad658ae77208df9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1.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.1-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 173.7 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.1-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 af8789c59e1eb17bc69cce03b852e5f084c47855ef0ea12deabdc674546359c6
MD5 4a6074edda44a8bf73853e8830e9ea8b
BLAKE2b-256 c0d94f9c1a226588e041613f97e70039502c73e1f8e2856a9a65d1c6710836df

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 186.5 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.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1bfd3fdd49de905237e2861dfcd7cf6d589f97a86494cbc6f91a98def5b7e102
MD5 4154514d3507a5345dbd8f14d5379db5
BLAKE2b-256 12301d1cafac8feee354f9bec0a3a484c111607a06e136391dba75ef693d2a86

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-win32.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-win32.whl
  • Upload date:
  • Size: 176.9 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.1-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 6b223d4210a15b810e5e2ef1a89c2de062903df6b84c72a7cab4c4bbf09af16f
MD5 7cc8f2126521168030e8b0c794a83796
BLAKE2b-256 34216b706e5370264129aea2dcec38c992b499988548347c51a138be6bfa3231

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 530.5 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.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5dc864e5b77bfb590d6151906805c8b1824eb9c94c462941491d619d2fbf35a4
MD5 8d282497fc7fbbe176f5703d4a7de056
BLAKE2b-256 eadf72dc161e7f593a287bb6aa7b0375aabe7751daf1d7e7478ae1d18b602054

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 557.5 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.1-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 38c6dcb7503df01c7402de603836fe4920670dcaa4114b4259a0d03de16781e9
MD5 8181234d69b84e7a484dc38ebe0c8e3a
BLAKE2b-256 8d4e7d914aa6faae37aa8f65b545320a6d0cf43ae6d3b48c048cf612683bd6b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl
  • Upload date:
  • Size: 597.6 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.1-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 43a1f6c6d30300c9a369bfce7b3cb65b1b84a4ca72ca555c1aee920d66fcddb8
MD5 e27ac5c276b6cfbd8606d2f053546d41
BLAKE2b-256 606fdaf416a2f327236133509b64075fa68072b5205c092b0c8bab6a1e08c579

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 488.5 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.1-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 69976473cfec18eac55827bb0807a97485e66920b637a239d98335b601520b37
MD5 a15a115bbc0d885ca0b2a2e6973510c5
BLAKE2b-256 2458348b53749a86a2d0f2d2451095e1566a67eba05aff361b536667360dd704

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01a5551dd671aa2e9d3f3255bca9240f24808dc1f110ac77326bfb50f2653bb1
MD5 5413a7a75079cff2a9e1379160ba9d43
BLAKE2b-256 3ea05db2469a87794616d1f6b41411775b7106f35e0c2bcee3ab1256729d108f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 8308a1388f99fadd42313494f18832d062a964746e55f0b008ff71d677d8f36a
MD5 92ce8fde7454241917636bb12cc49a85
BLAKE2b-256 bf00fee33b3aedad919226efd27acb5c57879e7a075cd75983cc9fa04005f141

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 8224aae8de1bb31c7a3afb85e62557155b47455bca6f00eae51bc8cb3631ffbb
MD5 cf55cec619aac1a2b93adfd143abdc76
BLAKE2b-256 43a0f9b3c0f4cead46a9033e2359e15d595d3590f2eb98f5e7573ef9e974a80a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 63172d30ad50919e27135fa2da58ba5f48686a384ca29786b2a1bb43b006bfd9
MD5 e97924d7e50c87911411f9270a11ea1d
BLAKE2b-256 ee088b6679d1897bea9427beb5c6f50276b6844e9d1a9fb2eba4ffcd227ee608

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38df4d817a59a4bf678f98ad62e93473d36a9c3f4cd7b402d3371d360b3b1f91
MD5 9f0bd8983033ae429e6fd979cc01c6b5
BLAKE2b-256 80760624524e4ba2052e3af996042da8a923f6b2282c0f20df799e49a5dd46ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for sugc-0.1.1-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 7b784411a438109054baf0d39f7b0802269e86f23580ed5b72878544a1cd83cb
MD5 913efceeb90e8cbd61e7c56bdee1a2c4
BLAKE2b-256 eaa81af735e877cd5e08add18d34718626e1a087606374bee502291d46b8e9ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 275.8 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.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb69f391ea6300940cd222f5fd183dfcdb8e59d3bc583083e544b1042d760b91
MD5 eea28a712c388109cbb017e028a6f395
BLAKE2b-256 9e696bb4c47c0d125df0ea7de1131db41a944412d7fdd2164a3d4a3f40fa8f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: sugc-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 285.6 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.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b33baca04d81576435c3b55803e28cca6ed45fe57eaed417805c19bbc66a1808
MD5 912cc11d3c9643bda1002b16172bc8c8
BLAKE2b-256 483ef308f795135e28ed5ae0cb901418abb2123db35eb045efd5d23a4202240a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugc-0.1.1-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