Skip to main content

A python package to predict halo concentration and shape parameter.

Project description

CASPER (Concentration And Shape Parameter Estimation Routine)

Casper is a python package aimed at predicting the concentration and shape parameter of dark matter haloes as a function of mass and redshift for a specified cosmology.

Installation

The easiest way to install Casper is using pip:

pip install py-casper [--user]

The --user flag may be required if you do not have root privileges. Alternatively for a more involved 'installation' that is also editable you can simply clone the github repository:

git clone https://github.com/Shaun-T-Brown/CASPER.git

and add the folder (specifically src) to your python path. This method will also require scipy and numpy to be installed. Using pip will automatically install all dependencies.

To use the main functionality of the package (i.e. to predict c and alpha) you will need to be able to generate the linear power spectra for a given cosmology. In principle this can be done using any accurate method. However, we recommend installing and using CAMB.

Usage

The best way to demonstrate how Casper can be used is with a few examples. A static jupyter notebook can be found here, while an interactive version hosted by binder can be found here.

Acknowledgements

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

py-casper-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

py_casper-0.0.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file py-casper-0.0.3.tar.gz.

File metadata

  • Download URL: py-casper-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for py-casper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9b9f7bd25bc5e1bf171929122373d0fec605684ef282dbc7c6a32e2690b0f1ec
MD5 b61d51e0137b6820b0e5e31b2ea5e7e3
BLAKE2b-256 f4b659a063849072b9fdab68605a3f38b61777f5e47b9e67440bbfd9ffa6d6fc

See more details on using hashes here.

File details

Details for the file py_casper-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: py_casper-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for py_casper-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1473bb06d7656676f279cd472601e314c8aa4d62c05f4f3a9437648596db8e0
MD5 c2fa2c0e9e994c7b52bdf85d10aa22e1
BLAKE2b-256 6b159e8a25857d09f00c50c7390c9ee0a3e7f8067f99fcbc74578ff1a31cd510

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