parallel_map

sherpa.utils.parallel_map(function, sequence, numcores=None)[source]

A parallelized version of the native Python map function that utilizes the Python multiprocessing module to divide and conquer sequence.

parallel_map does not yet support multiple argument sequences.

Parameters:
  • function – callable function that accepts argument from iterable
  • sequence – iterable sequence
  • numcores – number of cores to use