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

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

Built distribution (wheel)

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

Total release size: 6.8 MB

Release files / dark_emulator-1.2.2.tar.gz

Download URL dark_emulator-1.2.2.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
6bb7cf698807bfc25f4f5ce857faf707ed77ff28f664889e9a4b5466c634f23d
BLAKE2b-256 checksum
How to use checksums
f71c1762a4bec44e35ff0aa367d341da71764f6b09dfb545a54164d9081b3751
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.2-py3-none-any.whl

Download URL dark_emulator-1.2.2-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
be60e933ffe220583b61feb0b863817053f099ce2382dd196fa47a1e5a79a94f
BLAKE2b-256 checksum
How to use checksums
0d99f1119ae431b13b468290c36ab5f8aa8f5a795052d71ecd3c95fb5c87e8f3
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.2

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