Pregnancy#
- class Pregnancy(pars=None, metadata=None, **kwargs)[source]#
Bases:
DemographicsCreate births via pregnancies
Attributes
nowShortcut to self.t.now()
statesReturn a flat list of all states
statesdictReturn a flat dictionary (objdict) of all states
tiGet the current module timestep
timevecShortcut 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