package for computing power spectra and bispectra
Project description
CosmoWAP
______ _ _____ ____
/ ____/___ _________ ___ ____| | / / | / __ \
/ / / __ \/ ___/ __ `__ \/ __ \ | /| / / /| | / /_/ /
/ /___/ /_/ (__ ) / / / / / /_/ / |/ |/ / ___ |/ ____/
\____/\____/____/_/ /_/ /_/\____/|__/|__/_/ |_/_/
Cosmology with Wide-separation, relAtivistic and Primordial non-Gaussian contributions.
CosmoWAP is an effort to provide a (hopefully) self consistent framework to compute contributions within standard perturbation theory to the Fourier power spectrum and bispectrum including wide-separation and relativistic effects as well as Primordial non-Gaussianity (PNG). These expressions can be very cumbersome and it can be tricky to check for consistency in the community and so hopefully this code should be useful in that regard.
CosmoWAP is a Python package to analyse the power spectra and bispectra but the analytical expressions themselves are computed analytically in Mathematica using routines which are publicly available at MathWAP and then exported as .py files. Therefore the main functionality of CosmoWAP is to take these expressions and implement them for a given cosmology (from CLASS) and set of survey parameters.
Documentation
Full documentation is available at ReadtheDocs.
[!NOTE] Note this is still in progress as this is an evolving repo! Occasionally parts will be outdated and will contain deprecated methods.
Installation
[!NOTE] Requires at least Python >=3.10 for full functionality. For use of CosmoPower emulators we recommend using Python 3.10 or 3.11 - See Docs for full details.
pip install cosmowap
For Development mode...
Clone repository:
git clone https://github.com/craddis1/CosmoWAP.git
and then make editable install:
cd cosmowap
pip install -e .
See requirements.txt for full list of dependencies (most are common python libraries). classy (CLASS python wrapper) is necessary to fully use CosmoWAP.
Features
CosmoWAPs aim is to provide self-consistent modelling for the linear bispectrum and power spectrum. It contains redshift space expressions for the 3D Fourier (multipoles and full LOS dependent expressions) power spectrum (with multi-tracer capabilities) as well as the bispectrum (with Sccoccimarro spherical harmonic multipoles), including terms from:
- Wide separation (WS) effects (i.e. wide angle and radial redshift contributions) up to second order in the WS expansion
- Local Relativistic (GR) effects (including projection and dynamical effects) up to $\left(\frac{\mathcal{H}}{k}\right)^2$
- Integrated Effects, (e.g. lensing + ISW...) (power spectrum only currently)
- Primordial non-Gaussian (PNG) contribution for local, equilateral and orthogonal types
It also has a fully integrated forecasting and plotting library that allows these expressions to be explored.
additional features
- Bias modelling through Luminosity functions and HOD/HMF
- Multi-tracer multipole covariances (assuming gaussianity)
- Finger-of-God damping and non-linear corrections
- TriPOSH bispectrum expansion terms (Coming soon)
Usage
Base code based on work in arXiv:2407.00168
For Integrated effects see: arXiv:2511.09466
For PNG and Forecasting routines related please also refer to: arXiv:25xx.xxxx
Contact
If you find any bugs or errors or have any questions and suggestions feel free to get in touch :) - c.l.j.addis@qmul.ac.uk
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 cosmowap-0.6.1.tar.gz.
File metadata
- Download URL: cosmowap-0.6.1.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9274f834e509a24a0939999cbcdf510d50db2a781adac230a52586ba77eda200
|
|
| MD5 |
6c1dc7250780ad70e15c429648a5600e
|
|
| BLAKE2b-256 |
caa73def949fa326b9cd40d7efc6cf27712d761a71b511d87737ff3ab16cb64a
|
File details
Details for the file cosmowap-0.6.1-py3-none-any.whl.
File metadata
- Download URL: cosmowap-0.6.1-py3-none-any.whl
- Upload date:
- Size: 5.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bca3b6a2b7ed0983fec87ae0c8c3fb825ca9eb7b25438098d36a0b9b11299da
|
|
| MD5 |
133c7ff4b2604647dc0fdb0b867bc308
|
|
| BLAKE2b-256 |
82ef4ae4c49cc7f844e558fa7270ddc2029c376a597a3156f102ebf8c3364a0f
|