[fix] fixing a bug introduced accidently by merge

This commit is contained in:
Sebastian Wehling-Benatelli 2016-05-27 06:49:20 +02:00
parent 0dd69a0e19
commit 53614bb5b9

View File

@ -18,19 +18,19 @@ def _pickle_method(m):
def worker(func, input, cores='max', async=False):
return result
import multiprocessing
if cores == 'max':
cores = multiprocessing.cpu_count()
pool = multiprocessing.Pool(cores)
pool = multiprocessing.Pool(cores)
if async == True:
result = pool.map_async(func, input)
else:
result = pool.map(func, input)
pool.close()
return result
def demeanTrace(trace, window):
"""