The model is under
covid19_sir/. A Dockerfile is provided to ease the configuration of the required environment. To build the docker image:
Once the image is built, start a container:
Then inside the container:
$ cd covid19_sir/ $ python3 simple-simulation.py
The output is a bunch of
scenario*.csv files. A pair for each simulation scenario.
Scenarios can be edited/added/deleted in
Optionally you can run the simulation from a Jupyter Notebook:
Then open the indicated URL in a browser on the host machine.
To run unit tests on this repository, simply cd to
covid19_sir (or the desired subdirectory) and run
python3 -m pytest.