Skip to main content

package for computing power spectra and bispectra

Project description

CosmoWAP

   ______                         _       _____    ____ 
  / ____/___  _________ ___  ____| |     / /   |  / __ \
 / /   / __ \/ ___/ __ `__ \/ __ \ | /| / / /| | / /_/ /
/ /___/ /_/ (__  ) / / / / / /_/ / |/ |/ / ___ |/ ____/ 
\____/\____/____/_/ /_/ /_/\____/|__/|__/_/  |_/_/      
                                                        

PyPI version Licence Docs Codacy Badge PyPI version

Cosmology with Wide-separation, relAtivistic and Primordial non-Gaussian contibutions.

CosmoWAP is an effort to provide a (hopefully) self consistent framework to compute contribtuions within standard peturbation theory to the fourier power spectrum and bispectrum including wide-separation and relatvisitic effects as well as Primordial non-Gaussianity (PNG). These expression 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 avalable 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

Documentation

Full documentation is available at ReadtheDocs.

[!NOTE] Note this is still in progress as this is an evolving repo! Occassionaly 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 capabilites) 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 (IntInt, IntNPP), (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
  • Gaussian multipole covariances (Multi-tracer power spectrum)
  • 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 PNG and Forecasting routines related please also refer too: arXiv:25xx.xxxx

For Integrated effects see: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmowap-0.5.2.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

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

cosmowap-0.5.2-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file cosmowap-0.5.2.tar.gz.

File metadata

  • Download URL: cosmowap-0.5.2.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for cosmowap-0.5.2.tar.gz
Algorithm Hash digest
SHA256 7ad73b640cecaed91324fc1f43cb70747b911175eb98271fb11bd3b7c5f77958
MD5 04bab188edfa78fc69973f6c0cfe6cac
BLAKE2b-256 0cf188927e0f8aecf86d16026781287f6df26f6e29e87dc3085c7410c1d32776

See more details on using hashes here.

File details

Details for the file cosmowap-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: cosmowap-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for cosmowap-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d745062b44c0fd40abca13284a82100c7d3983deca675f0c6c06f44933fc6e3e
MD5 7e64ce820da6b8b959f268160263dbf9
BLAKE2b-256 f1c98fd991ad892318ddc8bf90a459627d00586abbca6dc8bbf00a7d342d7d0c

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