Skip to main content

Dark Emulator

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

A repository for a cosmology tool dark_emulator to emulate halo clustering statistics. The code is developed based on Dark Quest simulation suite (https://darkquestcosmology.github.io/). The current version supports the halo mass function and two point correlation function (both halo-halo and halo-matter cross).

Install

In order to install dark emulator package, use pip:

   pip install dark_emulator

or use conda:

   conda install -c nishimichi dark_emulator

(Nov. 2026) v1.2.3 is available on both pip and conda. It removes an unused, undocumented baryon option of the HOD module, which could not run in the public package (#47). v1.2.2 adds the angular correlation function of galaxies, get_wtheta, to the HOD module (#24), and pip install now also installs colossus. v1.2.1 fixes NaN outputs of wp and xi_gg for some combinations of cosmological and HOD parameters (#27), and warns when the HOD parameters give a galaxy number density below the range covered by the emulator. v1.2.0 supports recent SciPy versions (removed simps/trapz/scipy.misc.derivative) and fixes two bugs that slightly change numerical outputs: the FFTLog wrapper argument forwarding (#31) and the k-grid of the halo-matter propagator (#32).

If the above does not work for you, you may download the source files from this repository and install via

python -m pip install -e .

after moving to the top directory of the source tree. In that case, you need to install george (a software package for the Gaussian process) and colossus

conda install -c conda-forge george
pip install colossus

colossus is used for the NFW satellite distribution (sat_dist_type='NFW') in the HOD module. pip install dark_emulator installs it automatically, but it is not available on conda-forge, so conda users need to run pip install colossus in addition. From version 1.1.0, dark_emulator uses FFTLog implementation by Fang et al (2019); arXiv:1911.11947.

Usage

You can then check how Dark Emulator works by running a tutorial notebook at

docs/tutorial.ipynb
docs/tutorial-hod.ipynb

See also the documentation on readthedocs.

Code Paper

The main reference for our halo emulation strategy is: "Dark Quest. I. Fast and Accurate Emulation of Halo Clustering Statistics and Its Application to Galaxy Clustering", by T. Nishimichi et al., ApJ 884, 29 (2019), arXiv:1811.09504. Please also refer to the paper "Cosmological inference from emulator based halo model I: Validation tests with HSC and SDSS mock catalogs", by H. Miyatake et al., arXiv:2101.00113 for the implementation and performance of the halo-galaxy connection routines.

Metadata

Release files for dark-emulator 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dark-emulator 1.2.3
File Size Uploaded Provenance Actions
dark_emulator-1.2.3.tar.gz 3.9 MB Without provenance Details for dark_emulator-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dark-emulator 1.2.3
File Interpreter ABI Platform Actions
dark_emulator-1.2.3-py3-none-any.whl Python 3 none any Details for dark_emulator-1.2.3-py3-none-any.whl

Total release size: 6.8 MB

Release files / dark_emulator-1.2.3.tar.gz

Download URL dark_emulator-1.2.3.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
02c57a73ef21c9131abde03b368a70e8613168a35c436d94a7382580eda62473
BLAKE2b-256 checksum
How to use checksums
6e018c687084bcbc6d9986d2809779788113a59ae4bee9bebffc9b377aea9ae8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / dark_emulator-1.2.3-py3-none-any.whl

Download URL dark_emulator-1.2.3-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0596a3bac7e83508c752e57198bb6f9a460d3d9c728bb7948f3e466f9f9518e2
BLAKE2b-256 checksum
How to use checksums
d2149b99181a70473f1e05e383b7b988dba1854135936d3a3e3486a270c66e78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for dark-emulator 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page