Skip to main content

Dark matter halo properties and halo mass functions using JAX

Project description

logo

halox

JAX-powered Python library for differentiable dark matter halo property and mass function calculations.

License: MIT tests coverage PyPi version Documentation Status arXiv

Installation

halox can be installed via pip:

pip install halox

For a manual installation, see the documentation pages.

Features

halox offers a JAX-powered differentiable and GPU-accelerated implementation of some widely used properties of dark matter halos and large-scale structure, including:

  • halox.halo: Radial profiles of dark matter halos following Navarro-Frenk-White (NFW) and Einasto distributions;
  • halox.cm: Mass-concentration relations of dark matter halos;
  • halox.hmf: The halo mass function, quantifying the abundance of dark matter halos in mass and redshift and its dependence on cosmological parameters;
  • halox.bias: The halo bias.

All properties support cosmology dependence using jax-cosmo. More information on the modules available can be found in the documentation pages.

Testing

All functions available in halox are validated against existing, non-JAX-based software. Cosmology calculations are validated against Astropy for varying cosmological parameters and redshifts. Other quantities are validated against Colossus or gala for varying halo masses, redshifts, critical overdensities, and cosmological parameters. These tests are included in the automatic CI/CD pipeline; a visual comparison is also included in the documentation.

Documentation

For more detail on the code and features, please visit our documentation pages.

Citation

If you use halox for your research, please cite the original paper:

@ARTICLE{2025arXiv250922478K,
       author = {{K{\'e}ruzor{\'e}}, Florian},
        title = "{halox: Dark matter halo properties and large-scale structure calculations using JAX}",
      journal = {arXiv e-prints},
     keywords = {Instrumentation and Methods for Astrophysics, Cosmology and Nongalactic Astrophysics},
         year = 2025,
        month = sep,
          eid = {arXiv:2509.22478},
        pages = {arXiv:2509.22478},
          doi = {10.48550/arXiv.2509.22478},
archivePrefix = {arXiv},
       eprint = {2509.22478},
 primaryClass = {astro-ph.IM},
}

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

halox-2.1.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

halox-2.1.0-py3-none-any.whl (238.6 kB view details)

Uploaded Python 3

File details

Details for the file halox-2.1.0.tar.gz.

File metadata

  • Download URL: halox-2.1.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for halox-2.1.0.tar.gz
Algorithm Hash digest
SHA256 1088c1b685588cc0dab31954f147cbb71097900c06269033c5e03c3fefe349c0
MD5 8f5f4d782eda67a7389f3f1ff0bda4d2
BLAKE2b-256 6ad23b8a788b73e9c8e27c2e8ba8b44587d32d191a37836f0f79011592ec1464

See more details on using hashes here.

File details

Details for the file halox-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: halox-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 238.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for halox-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3947a0848c8c407d9b3602246793331ac59b344af9c263aba345dca5a214185
MD5 143061fc6c11a949a7944770d3fe358c
BLAKE2b-256 a458796ca21615427786a52f49f0ac951a2b454562465c76deccfb3389ae11c9

See more details on using hashes here.

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