Skip to main content

Numerical tool for perfroming uncertainty quantification

Project description

https://github.com/jonathf/chaospy/raw/master/docs/_static/chaospy_logo.svg

circleci codecov readthedocs downloads pypi

Chaospy is a numerical toolbox for performing uncertainty quantification using polynomial chaos expansions, advanced Monte Carlo methods implemented in Python. It also include a full suite of tools for doing low-discrepancy sampling, quadrature creation, polynomial manipulations, and a lot more.

The philosophy behind chaospy is not to be a single tool that solves every uncertainty quantification problem, but instead be a specific tools to aid to let the user solve problems themselves. This includes both well established problems, but also to be a foundry for experimenting with new problems, that are not so well established. To do this, emphasis is put on the following:

  • Focus on an easy to use interface that embraces the pythonic code style.

  • Make sure the code is “composable”, such a way that changing one part of the code with something user defined should be easy and encouraged.

  • Try to support a broad width of the various methods for doing uncertainty quantification where that makes sense to involve chaospy.

  • Make sure that chaospy plays nice with a large set of of other other similar projects. This includes numpy, scipy, scikit-learn, statsmodels, openturns, and gstools to mention a few.

  • Contribute all code to the community open source.

Installation

Installation should be straight forward from pip:

pip install chaospy

Or if Conda is more to your liking:

conda install -c conda-forge chaospy

Then go over to the documentation to see how to use the toolbox.

Development

Chaospy uses poetry to manage its development installation. Assuming poetry installed on your system, installing chaospy for development can be done from the repository root with the command:

poetry install

This will install all required dependencies and chaospy into a virtual environment.

Testing

To ensure that the code run on your local system, run the following:

poetry run pytest --doctest-modules chaospy/ tests/

Documentation

The documentation build assumes that pandoc is installed on your system and available in your path.

To build documentation locally on your system, use make from the docs/ folder:

cd docs/
make html

Run make without argument to get a list of build targets. The HTML target stores output to the folder doc/.build/html.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

chaospy-4.3.1.tar.gz (158.9 kB view details)

Uploaded Source

Built Distribution

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

chaospy-4.3.1-py3-none-any.whl (247.4 kB view details)

Uploaded Python 3

File details

Details for the file chaospy-4.3.1.tar.gz.

File metadata

  • Download URL: chaospy-4.3.1.tar.gz
  • Upload date:
  • Size: 158.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.9.4 Linux/4.15.0-1102-aws

File hashes

Hashes for chaospy-4.3.1.tar.gz
Algorithm Hash digest
SHA256 9909fb424838eb4a0cf47d9651cae51942b44fbe74ed01a17e5dbe8808d1dd41
MD5 208f0897a1d95acfffb94570dc89be7b
BLAKE2b-256 ce23c8e2dc80ed00d82b2928385cff06801752ab2eff4be960102f63a0329e9d

See more details on using hashes here.

File details

Details for the file chaospy-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: chaospy-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 247.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.9.4 Linux/4.15.0-1102-aws

File hashes

Hashes for chaospy-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16212ebae984588e504cee6bfbbb1bd00bd0a7bb0dcd75504eb1756ca77207dd
MD5 aec22989f49d5a4841cebe931656e9bc
BLAKE2b-256 0206aa4cc1e5cb96097dd63291ac27133ba5b70ed7408fd88147cd80899ec4ba

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