BaseTest#

class BaseTest(product=None, prob=None, eligibility=None, **kwargs)[source]#

Bases: Intervention

Base 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

now

Return the current time, i.e. the time vector at the current timestep.

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

Methods

deliver()[source]#

Deliver the diagnostics by finding who’s eligible, finding who accepts, and applying the product.