From 53614bb5b95af27bbcb037dde07c879906cfeea5 Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Fri, 27 May 2016 06:49:20 +0200 Subject: [PATCH] [fix] fixing a bug introduced accidently by merge --- pylot/core/util/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index a7167c43..5f3e2131 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -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): """