Skip to content

Instantly share code, notes, and snippets.

@dpgoldenberg
dpgoldenberg / covidPeeps.py
Last active September 27, 2021 17:47
Random walk simulation of disease spread
# Module for simulating infectious-disease spread with a random-walk model
# with widgets to allow interactive control in a Jupyter notebook
# David Goldenberg, August 2020
# Revision to add vaccinated peeps!
# Sept 2021
import matplotlib.pyplot as plt
import numpy as np