make_people#
- class make_people(sim, popdict=None, die=True, reset=False, recreate=False, verbose=None, **kwargs)[source]#
Make the actual people for the simulation.
Usually called via
sim.initialize()
. While in theory this function can be called directly by the user, usually it’s better to callcv.People()
directly.- Parameters:
sim (Sim) – the simulation object; population parameters are taken from the sim object
popdict (any) – if supplied, use this population dictionary instead of generating a new one; can be a dict, SynthPop, or People object
die (bool) – whether or not to fail if synthetic populations are requested but not available
reset (bool) – whether to force population creation even if self.popdict/self.people exists
recreate (bool) – whether to recreate (re-instantiate) the People object even if already supplied
verbose (bool) – level of detail to print
kwargs (dict) – passed to make_randpop() or make_synthpop()
- Returns:
people
- Return type:
people (People)