Skip to main content

package for emulating galaxy power spectrum multipoles using neural networks

Project description

Static Badge

pytests Read the Docs

MENTAT-LSS

Realistic rendition of mentat-lss (aka spherex_emu), showing an emu inside the SPHEREx satellite dish. Image credit: Grace Gibbins

The Multipole Emulator for Nonlinear Tracer Analysis of Two-point statistics and Large Scale Structure (also known as spherex_emu) is a package providing tools to create and use a neural network emulator that outputs redshift-space galaxy power spectrum multipoles given a set of input cosmology + galaxy bias parameters. Said emulator is able to generate multipoles for multiple tracer and redhshift bins simultaniously. While originally designed for use in SPHEREx likelihood inference studies, mentat-lss can be used for any galaxy clustering survey (BOSS, DESI, etc).

For more details on how to use this package, check out our documentation on ReadTheDocs!

Installing the code

This package works on both Linux and MacOS (intel and arm64) platforms, and has so-far been tested using Python 3.9 - 3.11. There are two main methods to install the code.

Preliminaries

  1. To enable GPU functionality for network training, make sure you have CUDA installed (or python 3.8+ if using apple silicon).
  2. You will need some way to generate galaxy power spectrum multipoles to generate training sets. One option is to download and install both ps_1loop and ps_theory_calculator. You might need to request access to those repositories, in which case you can contact Yosuke Kobayashi (yosukekobayashi@arizona.edu). We have also included a version of FAST-PT to satisfy this requirnment.

From pip (recommended)

In a clean enviornment, simply run,

pip install mentat-lss

Alternatively, if you would like to install from source (for example, you want to add to the package, or would like easier access to the provided config files)), you can do so in two different ways.

From source (automatic)

  1. Download this repository to your location of choice.
  2. In the base directory, simply run install.sh in the terminal. This script will create a new anaconda enviornment, fetch the corresponding version of PyTorch, and install the code, all automatically.

From source (manual)

  1. Download this repository to your location of choice.
  2. install the corresponding PyTorch version. If your machine doesn't have a GPU, you can skip this step.
  3. In the base directory, run python -m pip install ., which should install this repository as a package and all required dependencies.

To run the provided unit-tests, you can run the following command in the base repo directory,

python -m pytest tests

Using MENTAT-LSS

Check out our ReadTheDocs Page on a typical workflow process.

If you use this package for your research, please cite the following papers:

Authors

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

mentat_lss-1.0.0.tar.gz (124.8 kB view details)

Uploaded Source

Built Distribution

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

mentat_lss-1.0.0-py3-none-any.whl (129.7 kB view details)

Uploaded Python 3

File details

Details for the file mentat_lss-1.0.0.tar.gz.

File metadata

  • Download URL: mentat_lss-1.0.0.tar.gz
  • Upload date:
  • Size: 124.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mentat_lss-1.0.0.tar.gz
Algorithm Hash digest
SHA256 88259fed44096a054c4d61c33e2cfa98f57b7032051d98079d8074745dabc394
MD5 40e8c915781aca9efbc139e6ea877d12
BLAKE2b-256 cf5fae00b90b9838aca1a12b70717d0c201685a52a207a630a8ff17c45c413a8

See more details on using hashes here.

File details

Details for the file mentat_lss-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mentat_lss-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 129.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mentat_lss-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 803e222c872b2ef2b4a58023094ac9e3ddb2a3c294dfd0cc31d018a4b3a27af5
MD5 3c9cb39bfd3746d6c765fbc526ee9977
BLAKE2b-256 e53b581ea50562d4e28cb49bd109339a28377b3f2f79186e6c0e7733a8880c4f

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