Skip to main content

No project description provided

Project description

Toolscosmo

CI Status GitHub Repository

A Python package for cosmological calculations required to study large-scale structures. Full documentation (with examples, installation instructions and complete module description) can be found at readthedocs.

Note: Some modules in the package are still under active development. Please contact the authors if you encounter any issues.

Package details

The package provides tools to model standard cosmology and its extensions. Currently, Toolscosmo supports the following calculations:

  • Cosmological calculators: Various functions for cosmological calculations and conversions.

  • Matter power spectrum:

    • Interface with Boltzmann solvers (e.g., CLASS and CAMB) to simulate the linear power spectrum.
    • Model the non-linear power spectrum using the halo model.
  • Emulators: Machine learning-based models for:

    • Fast simulation of the linear power spectrum.
  • Halo mass function: Probability distribution function of dark matter halo masses.

For detailed documentation and usage instructions, see the contents page.

Under Development

  • Dark matter merger trees: Analytical merger trees using the extended Press-Schechter formalism.

INSTALLATION

To install the package from source, one should clone this package running the following::

git clone https://github.com/sambit-giri/toolscosmo.git

To install the package in the standard location, run the following in the root directory::

python setup.py install

In order to install it in a separate directory::

python setup.py install --home=directory

One can also install the latest version using pip by running the following command::

pip install git+https://github.com/sambit-giri/toolscosmo.git

The dependencies should be installed automatically during the installation process. The list of required packages can be found in the requirements.txt file present in the root directory.

Tests

For testing, one can use pytest. To run all the test script, run the either of the following::

python -m pytest tests

CONTRIBUTING

If you find any bugs or unexpected behavior in the code, please feel free to open a Github issue. The issue page is also good if you seek help or have suggestions for us. For more details, please see here.

CREDIT

This package uses the template provided at https://github.com/sambit-giri/SimplePythonPackageTemplate/ 

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

toolscosmo-0.1.1.tar.gz (363.5 kB view details)

Uploaded Source

Built Distribution

toolscosmo-0.1.1-py3-none-any.whl (714.9 kB view details)

Uploaded Python 3

File details

Details for the file toolscosmo-0.1.1.tar.gz.

File metadata

  • Download URL: toolscosmo-0.1.1.tar.gz
  • Upload date:
  • Size: 363.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for toolscosmo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12f188e818e481054e46c3cf1dbb285ab5f2f2f1b2c3416fa0ce5df233406f71
MD5 ad36bee50867a2b0df36515a4fc71f1c
BLAKE2b-256 7a7dad77345e615814751112e8157fc9bc1741870f083e46b104e882d713004c

See more details on using hashes here.

File details

Details for the file toolscosmo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: toolscosmo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 714.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for toolscosmo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f3e316310ff173c3fe90fa66aafd8837352eee8d467c08245987e78aad1af9
MD5 39a571183c914ea7aa3a3ac8a40fc15f
BLAKE2b-256 b331e4e685720fc8e7c8ea8f989687f077b46c6f3191fbfb5a71e2cb57362d34

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