amep.utils.group_jobs#
- amep.utils.group_jobs(joblist: list, nworkers: int) list#
Groups the given jobs into groups of length nworkers. This method is used for the amep.utils.compute_parallel method.
- Parameters:
joblist (list) – List of jobs.
nworkers (int) – Distribute the jobs to this number of workers.
- Returns:
jobgroups – Grouped jobs.
- Return type:
list of list