Skip to main content

No project description provided

Project description

Toolscosmo

License GitHub Repository CI Status PyPI version

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.

  • Initial Condition Generator: Lagrangian Perturbation Theory (LPT) based initial condition generator for cosmological numerical simulation frameworks.

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 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

toolscosmo-0.1.10-py2.py3-none-any.whl (885.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file toolscosmo-0.1.10-py2.py3-none-any.whl.

File metadata

  • Download URL: toolscosmo-0.1.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 885.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for toolscosmo-0.1.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a00c43fd70dcefbcdcaf6fa29f8489970b7c0da3caf688526d4b2bc767b9c406
MD5 88fa69ca7998b9a8321b8e792dbf4bfd
BLAKE2b-256 e4d029c3c5b14f4dfe9012cbd47fc6a9427794df5c81444316f4de6f0252ef36

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