Skip to main content

Python package to predict the suppression of the total matter power spectrum due to baryonic physics

Project description

py-SP(k) - A hydrodynamical simulation-based model for the impact of baryon physics on the non-linear matter power spectrum

                      _____ ____   ____   _ 
    ____  __  __     / ___// __ \_/_/ /__| |
   / __ \/ / / /_____\__ \/ /_/ / // //_// /
  / /_/ / /_/ /_____/__/ / ____/ // ,<  / / 
 / .___/\__, /     /____/_/   / //_/|_|/_/  
/_/    /____/                 |_|    /_/    

py-SP(k) is a python package aimed at predicting the suppression of the total matter power spectrum due to baryonic physics as a function of the baryon fraction of haloes and redshift.

Requirements

The module requires the following:

  • numpy
  • scipy

Installation

The easiest way to install py-SP(k) is using pip:

pip install pyspk [--user]

The --user flag may be required if you do not have root privileges.

Usage

A simple example:

import pyspk as spk

z = 0.125
fb_a = 8.44e-05
fb_pow = 0.275
k, sup = spk.sup_model(SO=200, z=z, fb_a=fb_a, fb_pow=fb_pow, k_max=10)

A jupyter notebook with more examples can be found within this repository.

Acknowledging the code

Please cite spk using:

@ARTICLE{spk,
       author = {},
        title = "{}",
      journal = {\mnras},
     keywords = {},
         year = ,
        month = ,
       volume = {},
       number = {},
        pages = {},
          doi = {},
archivePrefix = {arXiv},
       eprint = {},
 primaryClass = {astro-ph.CO},
       adsurl = {},
      adsnote = {}
}

For any questions and enquires please contact me via email at j.salcidonegrete@ljmu.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

pyspk-1.0.tar.gz (148.9 kB view details)

Uploaded Source

Built Distribution

pyspk-1.0-py3-none-any.whl (150.9 kB view details)

Uploaded Python 3

File details

Details for the file pyspk-1.0.tar.gz.

File metadata

  • Download URL: pyspk-1.0.tar.gz
  • Upload date:
  • Size: 148.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for pyspk-1.0.tar.gz
Algorithm Hash digest
SHA256 9e198d00cee5101d60da4b5a5f75b36df3d4862b9766d3afc813b845fd03e901
MD5 c03e9980e256add9d9ca5955c818a96f
BLAKE2b-256 a8d20734e1e3790826d866e4d99bdc646fba69430f90883d2ba783b2ec83ec06

See more details on using hashes here.

File details

Details for the file pyspk-1.0-py3-none-any.whl.

File metadata

  • Download URL: pyspk-1.0-py3-none-any.whl
  • Upload date:
  • Size: 150.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for pyspk-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4273a31f26cb4abe06b07dd7ef3f1af3e451efbb3388c9cd8ff86434dfd45d49
MD5 d411935155b285581cd9c16f6befbb4c
BLAKE2b-256 5e2845cc983684e34adf374c2d114a24861d4d9e1c2250a56078fa251ecde3fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page