Pregnancy#
- class Pregnancy(pars=None, metadata=None, **kwargs)[source]#
Bases:
Demographics
Create births via pregnancies
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
- static make_fertility_prob_fn(self, sim, uids)[source]#
Take in the module, sim, and uids, and return the conception probability for each UID on this timestep