Skip to main content

Static Badge

pytests codecov 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 are also working on interfacing this library with cocoa, so stay tuned!

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

Metadata

Release files for mentat-lss 1.1.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 mentat-lss 1.1.2
File Size Uploaded Provenance
mentat_lss-1.1.2.tar.gz 85.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mentat-lss 1.1.2
File Interpreter ABI Platform
mentat_lss-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 156.4 kB

Release files / mentat_lss-1.1.2.tar.gz

Download URL mentat_lss-1.1.2.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c18f45d23e0d2f2f3fb074a3f0bfeb2f78dd96f0c1eee659848a99b6c84e8c1d
BLAKE2b-256 checksum
How to use checksums
4f175f9ecc4ec82ccdf1857e9e8e440526933a8e06bb692e44505c1a9334dc6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / mentat_lss-1.1.2-py3-none-any.whl

Download URL mentat_lss-1.1.2-py3-none-any.whl
Size 70.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
736ca4712b4475256412c32db92acff0e72043a5f823074f6c5d80a3a3c22a48
BLAKE2b-256 checksum
How to use checksums
7953cce56d599750d08628b46bf651d0ce6e26e8c60b49a55f4d7be16a7a3657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for mentat-lss 1.1.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