Skip to main content

Halo Extreme Block Bootstrap package to estimate the N largest halo masses given the field of view and redshift depth of a survey

Project description

hebb

Halo Extreme Block Bootstrap package to estimate the distribution of heaviest halo mass you can find in a survery at a given redshift.

hebb uses as a basedata the Uchuu simulation halo catalogue (https://skiesanduniverses.org/Simulations/Uchuu) to perform a block bootstrap by shooting N boxes of a volume equal of the estimated volume of a survey, and recovering the largest halo formed at a particular z, with an uncertainty estimate. The volume of the survey is computed given the survey's field of view and redshift depth, or manually selected. Optionally, the code can dump the list of halo found in the search, which can be used to perform a trace back in time with the Uchuu merger tree.

Please cite the following papers if you use hebb in your work: Negri & Belli (2026), Ishiyama et al. (2021) (Uchuu Data Release 1).

Installation

There are 2 ways to install hebb: via PyPI

python3 -m pip install hebb

Or directly from the repository https://github.com/NegriAndrea/hebb/ and install locally

git clone https://github.com/NegriAndrea/hebb
cd hebb
python3 -m pip install -e .

Database Setup

In addition to installing the Python package, you must download a reduced version of the Uchuu database. Two versions are available, with a different cut in mass; a light one (2.3 GB) and a more complete one (~40 GB) from here. To set the database path you can define the following environment variable in your ~/.bash_profile

# bash
export HEBB_DB_PATH=/path/to/database

where you have to change /path/to/database to the path of the downloaded database. By default, the code looks first for the most complete catalugue, and if it is not found, it will look for the light one.

NOTE: In order to keep the file size manageble the database contains only log10(M200), positions and merger tree IDs; the halo positions have been binned on a 40 ckpc gridsize and stored as uint16 integer, which is precise enough for volumes that are usually way larger than 1 cMpc.

Test installation

The easiest way to test if everything is correctly installed and set up is to run the command

hebb 100 0. -L 1000 -M 1e14

Usage

The simplest way to use hebb is via command line, hebb -h returns the user manual:

@ARTICLE{2021MNRAS.506.4210I, author = {{Ishiyama}, Tomoaki and {Prada}, Francisco and {Klypin}, Anatoly A. and {Sinha}, Manodeep and {Metcalf}, R. Benton and {Jullo}, Eric and {Altieri}, Bruno and {Cora}, Sof{'\i}a A. and {Croton}, Darren and {de la Torre}, Sylvain and {Mill{'a}n-Calero}, David E. and {Oogi}, Taira and {Ruedas}, Jos{'e} and {Vega-Mart{'\i}nez}, Cristian A.}, title = "{The Uchuu simulations: Data Release 1 and dark matter halo concentrations}", journal = {\mnras}, year = 2021, month = sep, volume = {506}, number = {3}, pages = {4210-4231}, doi = {10.1093/mnras/stab1755}, archivePrefix = {arXiv}, eprint = {2007.14720}, primaryClass = {astro-ph.CO}, adsurl = {https://ui.adsabs.harvard.edu/abs/2021MNRAS.506.4210I}, }

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

hebb-0.8.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

hebb-0.8-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file hebb-0.8.tar.gz.

File metadata

  • Download URL: hebb-0.8.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for hebb-0.8.tar.gz
Algorithm Hash digest
SHA256 9e07937a05c82be0566215fb5a2695ccd67706a4fcd98133abaff367ff2c1c4a
MD5 bdf6be1278651be903290c536179a12e
BLAKE2b-256 f7277edffae529967f26c07e7202f672666cb7099f8620b715eae27fbb5b0ec9

See more details on using hashes here.

File details

Details for the file hebb-0.8-py3-none-any.whl.

File metadata

  • Download URL: hebb-0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for hebb-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1a5607bdcfbb652bbd021939aefbf71455f764b5dbc3be9ae924f4a6dd8442c0
MD5 ca6893ec24aa3025050506595db73069
BLAKE2b-256 ec2574e0b7a04d45db4ec0f8b6d59b7238add0b21deb07e2e7a19282958c587e

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