InterventionDict#

class InterventionDict(which, pars)[source]#

Generate an intervention from a dictionary. Although a function, it acts like a class, since it returns a class instance.

Example:

interv = cv.InterventionDict(which='change_beta', pars={'days': 30, 'changes': 0.5, 'layers': None})