BaseTest#
- class BaseTest(product=None, prob=None, eligibility=None, **kwargs)[source]#
Bases:
InterventionBase class for screening and triage.
- Parameters:
product (Product) – the diagnostic to use
prob (float/arr) – annual probability of eligible people receiving the diagnostic
eligibility (inds/callable) – indices OR callable that returns inds
kwargs (dict) – passed to Intervention()
Attributes
has_productCheck if the intervention has a product
nowShortcut to self.t.now()
statesReturn a flat list of all states
statesdictReturn a flat dictionary (objdict) of all states
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods