Tx#

class Tx(df, *args, **kwargs)[source]#

Bases: Product

Treatment products change fundamental properties about People, including their prognoses and infectiousness.

Attributes

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

administer(uids, return_format='dict')[source]#

Loop over treatment states to determine those who are successfully treated and clear infection