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.1 is available on both pip and conda. It 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

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.1

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.1
File Size Uploaded Provenance Actions
dark_emulator-1.2.1.tar.gz 3.9 MB Without provenance Details for dark_emulator-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.8 MB

Release files / dark_emulator-1.2.1.tar.gz

Download URL dark_emulator-1.2.1.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
e4d4758cbceac607c15aa20d11ad80d18c894065a472b257efb14ad2eb707ffd
BLAKE2b-256 checksum
How to use checksums
8c95154f6682cc41239c75e0fe14db041f16faf1118a7c9a2d1ed6e615f31c64
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.1-py3-none-any.whl

Download URL dark_emulator-1.2.1-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
42310d01a8c345f1b2ac0c41fc28fee1002f84354c8701ef13ad084ed2a0627f
BLAKE2b-256 checksum
How to use checksums
5427f97c4018d93e56963b0754c74afb55b09fa2c06b121a261b3cf656e2fdfc
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.1

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