interventions#

Specify the core interventions available in Covasim. Other interventions can be defined by the user by inheriting from these classes.

Classes

Intervention

Base class for interventions.

dynamic_pars

A generic intervention that modifies a set of parameters at specified points in time.

sequence

This is an example of a meta-intervention which switches between a sequence of interventions.

change_beta

The most basic intervention -- change beta (transmission) by a certain amount on a given day or days.

clip_edges

Isolate contacts by removing them from the simulation.

test_num

Test the specified number of people per day.

test_prob

Assign each person a probability of being tested for COVID based on their symptom state, quarantine state, and other states.

contact_tracing

Contact tracing of people who are diagnosed.

simple_vaccine

Apply a simple vaccine to a subset of the population.

BaseVaccination

Apply a vaccine to a subset of the population.

vaccinate_prob

Probability-based vaccination

vaccinate_num

This vaccine intervention allocates vaccines in a pre-computed order of distribution, at a specified rate of doses per day.

historical_vaccinate_prob

Probability-based historical vaccination

historical_wave

Imprint a historical (pre t=0) wave of infections in the population NAbs

Functions

InterventionDict

Generate an intervention from a dictionary.

vaccinate

Wrapper function for vaccinate_prob() and vaccinate_num().

prior_immunity

Wrapper function for historical_wave and historical_vaccinate_prob.