treat_delay#

class treat_delay(delay=None, **kwargs)[source]#

Bases: BaseTreatment

Treat people after a fixed delay

Parameters:

delay (int) – years of delay between becoming eligible for treatment and receiving treatment.

Methods

add_to_schedule(sim)[source]#

Add people who are willing to accept treatment to the treatment scehduler

get_candidates(sim)[source]#

Get the indices of people who are candidates for treatment

apply(sim)[source]#

Apply treatment. On each timestep, this method will add eligible people who are willing to accept treatment to a scheduler, and then will treat anyone scheduled for treatment on this timestep.