Authors:
- Christian Haack
- Martina Karl
- Stephan Meighen-Berger
- Dominik Scholz
- Andrea Turcati
[[TOC]]
A python package to simulate the spread of diseases in a population. The code is structured modular, allowing for easy extension/change of the steps required in modelling the spread. The model is similar to the analytic SIR model and it's extensions. Switching between these models is done by setting the corresponding parameters for the infection.
The scial model is structed as
The epidemiological model is based on a SEIR model.
A basic running example to interface with the package
# Importing the package
from contagion import Contagion, config
# Creating contagion object
contagion = Contagion()
# Optional: Some settings
config['population size'] = 1000
# Runing the simulation
contagion.sim()
# Access simulation results using
results = contagion.statistics