Compartmental modelling Python package
Project description
comod
Compartmental modelling Python package
Preview
Check the docs to see more.
Features
- Define a model with simple rules as strings or with custom functions.
- Pre-defined models like SIR, SIS, SEIR, ...
- Community-extensions of models.
- Solve numerically for fixed or time-dependent parameters.
- Best-fit to existing data, posibly using time windows.
- Create compartment graphs.
- Export LaTeX.
- Export to Wolfram Language (Mathematica).
Installation
Assuming you have a Python3 distribution with pip, the latest pypi release can be installed with:
pip3 install comod
To install the optional dependencies you can run
pip3 install 'comod[extras]'
Mind the quotes.
Developer information
Instalation
To install a development version, cd to the directory with this file and:
pip3 install -e '.[test]'
As an alternative, a virtualenv might be used to install the package:
# Prepare a clean virtualenv and activate it
virtualenv -p /usr/bin/python3.6 venv
source venv/bin/activate
# Install the package
pip3 install -e '.[test]'
Documentation
To generate the documentation, the docs extra dependencies must be installed.
To generate an html documentation with sphinx run:
make docs
To generate a PDF documentation using LaTeX:
make pdf
Test
To run the unitary tests:
make test
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
comod-0.2.0.tar.gz
(13.9 kB
view hashes)
Built Distribution
comod-0.2.0-py2.py3-none-any.whl
(13.9 kB
view hashes)
Close
Hashes for comod-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8953a5765a34e315d53f7da0e7308cb7fac2c6ef09123bbe962a3aa3b73877 |
|
MD5 | 3a9e5b6396da2c24b6b9c0872f122026 |
|
BLAKE2b-256 | bbabe69e1ab9562b0f208d149454f72fb3340fd084945d4028bbc6c8d678c772 |