parmap

Contents

parmap#

powerplantmatching.utils.parmap(f, arg_list, config=None)#

Parallel mapping function. Use this function to parallelly map function f onto arguments in arg_list. The maximum number of parallel threads is taken from config.yaml:parallel_duke_processes.

Parameters:
  • f (function) – python function with one argument

  • arg_list (list) – list of arguments mapped to f