Installation#

Install the latest release from PyPI (Python 3.10 or newer):

pip install twpasolver

The CME solvers are compiled with Numba and cached to disk the first time they run. Compile them once after installing (a few minutes), instead of during your first analysis:

twpasolver-warmup

Development install#

Clone the repository and install it with Poetry, together with the documentation and analysis tools and the pre-commit hooks:

git clone https://github.com/twpalab/twpasolver
cd twpasolver
poetry install --with docs,analysis
pre-commit install

Building the documentation executes the tutorial notebooks and needs pandoc:

make -C docs html