populate_workplaces#
- populate_workplaces(pop, workplaces)[source]#
Populate all of the workplaces. Store each workplace at the index corresponding to it’s wpid.
- Parameters:
pop (sp.Pop) – population
workplaces (list) – list of lists where each sublist represents a workplace and contains the ids of the workplace members
Notes
If number of workplaces (n) is fewer than existing workplaces, it will only replace the first n workplaces. Otherwise the existing workplaces will be overwritten by the input workplaces.