Pregnancy#
- class Pregnancy(pars=None, metadata=None, **kwargs)[source]#
Bases:
Demographics
Create births via pregnancies
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
- 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