A Python implementation of the MT-DREAM(ZS) algorithm presented in Laloy and Vrugt 2012.
PyDREAM was originally developed by Erin Shockley, Oscar Ortega, and other contributors. It is currently maintained and being modernized by Benjamin Zoller, with AI assistance from Google's Gemini.
For example usage, see the examples folder. Two of the examples, CORM and Robertson, require the Python modeling framework PySB.
Documentation is available at Read the Docs.
To install PyDREAM locally in editable mode along with its testing dependencies, run the following from the root of the repository:
pip install -e ".[test]"PyDREAM uses pytest for unit testing. After installing the test dependencies, you can run the entire test suite simply by running:
pytest -vsTo run the tests with code coverage reporting:
pytest --covPyDREAM uses modern pyproject.toml packaging. To build the distribution archives (wheel and source distribution) and upload them to PyPI, use build and twine:
pip install build twine
python -m build
python -m twine upload dist/*