A cosmological emulator for nonlinear large-scale structure formation studies in alternative dark energy and gravity theories.
Project description
e-MANTIS: Emulator for Multiple observable ANalysis in extended cosmological TheorIeS
Description
e-MANTIS is a python package containing emulators providing theoretical predictions for the nonlinear large-scale structure formation in the context of alternative dark energy and gravity theories. It uses Gaussian processes to perform a fast and accurate interpolation between the outputs of high resolution cosmological \(N\)-body simulations. The emulator supports multiple cosmological models and observables. It is divided in multiple modules, each one focusing on a particular type of observable. Currently, e-MANTIS provides emulators for the following quantities:
Matter power spectrum boost in f(R) gravity, described in: The e-MANTIS emulator: fast predictions of the nonlinear matter power spectrum in f(R)CDM cosmology.
Halo mass function in f(R)CDM and wCDM cosmologies, described in: The e-MANTIS emulator: fast and accurate predictions of the halo mass function in f(R)CDM and wCDM cosmologies.
Please cite the corresponding papers if you use e-MANTIS in your work.
This project is under constant development. More observables and cosmological models will be added in the future. Stay tuned!
Installation
You can install the python package from PyPI via pip:
pip install emantis
Or you can directly clone our public repository and install it from source:
git clone https://gitlab.obspm.fr/e-mantis/e-mantis.git cd e-mantis pip install [-e] .
It requires a python version >= 3.10.
Post-installation
The emulators shipped with e-MANTIS need to be trained before they can provide predictions. This will be done automatically and on-the-fly the first time you use each emulator.
Alternatively, we provide a CLI utility to train all emulators at once:
emantis-train
This should not take more than a couple of minutes.
The trained emulators are saved to disk, using the pickle protocol, ready for future usage. Major changes in the versions of python, e-MANTIS, or some of its main dependencies, such as numpy, scipy, or scikit-learn, might break the compatibility with previously trained emulators. In such case, the emulators will be retrained automatically on-the-fly. You can also retrain them manually using the CLI utility.
Documentation and usage
The up-to-date documentation for this project (with code examples and a detailed API) is available here.
Licence
Copyright (C) 2023 Iñigo Sáez-Casares
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emantis-1.2.2.tar.gz.
File metadata
- Download URL: emantis-1.2.2.tar.gz
- Upload date:
- Size: 21.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f826a1baaee0467ffd70846eadf25b4c0311289ac8cb4815ae43cb5b6ae655c
|
|
| MD5 |
d756f1fca3c3c5f0f7bec9c206c10023
|
|
| BLAKE2b-256 |
c1f79d86e21c50978a253815a44c7a0d6b6c94ce7d980e1e4929b6706c6d4b85
|
File details
Details for the file emantis-1.2.2-py3-none-any.whl.
File metadata
- Download URL: emantis-1.2.2-py3-none-any.whl
- Upload date:
- Size: 21.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31b819015252eae1e457091884ecf910ba2bf3330031b2e4c300741135b4f8d4
|
|
| MD5 |
594f8021c27bb45b94382d2ca89d841c
|
|
| BLAKE2b-256 |
854f72a576735be10099360d1f311e1fbc31acd1edde130635d0057925b0a5ff
|