agpy 0.1 documentation

contributed Package

contributed Package

parallel_map Module

contributed.parallel_map.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