Deaths#

class Deaths(pars=None, metadata=None, **kwargs)[source]#

Bases: Demographics

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

standardize_death_data()[source]#

Standardize/validate death rates - handled in an external file due to shared functionality

static make_death_prob_fn(self, sim, uids)[source]#

Take in the module, sim, and uids, and return the probability of death for each UID on this timestep

step()[source]#

Select people to die