/hh-npi-modelling

Household modelling of non-pharmaceutical interventions

Primary LanguagePythonApache License 2.0Apache-2.0

Publication version of the Python age-household model. A detailed description of the code and examples can be found in this repo's wiki.

Run the examples from the main repo directory. In order to make the model directory visible as Python module, run the following from the main directory of the repo e.g.

On UNIX-like system

export PYTHONPATH=$(pwd):$PYTHONPATH
python examples/uk/run.py

On Windows, the easiest way is to install Anaconda with a graphic installer from here.

cd <directory with the code>
set PYTHONPATH=%CD%
python examples/uk/run.py

Prerequisites

  • pandas - for readind and manipulating data from spreadsheets
  • tqdm - simple progress bar