sim#

Defines the Sim class, Covasim’s core class.

Classes

Sim

The Sim class handles the running of the simulation: the creation of the population and the dynamics of the epidemic.

Functions

diff_sims

Compute the difference of the summaries of two simulations, and print any values which differ.

demo

Shortcut for cv.Sim().run().plot().

Exceptions

AlreadyRunError

This error is raised if a simulation is run in such a way that no timesteps will be taken.