BaseVaccination#
- class BaseVaccination(*args, product=None, prob=None, label=None, **kwargs)[source]#
Bases:
Intervention
Base vaccination class for determining who will receive a vaccine.
- Parameters:
product (str/Product) – the vaccine to use
prob (float/arr) – annual probability of eligible population getting vaccinated
eligibility (inds/callable) – indices OR callable that returns inds
label (str) – the name of vaccination strategy
kwargs (dict) – passed to Intervention()
Attributes
has_product
Check if the intervention has a product
now
Shortcut to self.t.now()
states
Return a flat list of all states
statesdict
Return a flat dictionary (objdict) of all states
ti
Get the current module timestep
timevec
Shortcut to self.t.timevec
Methods