Deaths#

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

Bases: Demographics

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

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