osl_ephys.utils.parallel#
Utility functions for parallel processing.
Attributes#
Functions#
|
A maybe more consistent alternative to |
Module Contents#
- osl_ephys.utils.parallel.dask_parallel_bag(func, iter_args, func_args=None, func_kwargs=None)[source]#
A maybe more consistent alternative to
dask_parallel.- Parameters:
func (function) – The function to run in parallel.
iter_args (list) – A list of iterables to pass to func.
func_args (list, optional) – A list of positional arguments to pass to func.
func_kwargs (dict, optional) – A dictionary of keyword arguments to pass to func.
- Returns:
flags – A list of return values from func.
- Return type:
list
References