From 381a8c282eccb9f448c1ff5392329087e2b3c448 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 21 Oct 2024 00:42:26 +0200 Subject: remove multiprocessing --- metchart/manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metchart/manager.py b/metchart/manager.py index a49b75e..b7723d3 100644 --- a/metchart/manager.py +++ b/metchart/manager.py @@ -7,7 +7,6 @@ import os import importlib from multiprocessing import cpu_count -from multiprocessing.pool import ThreadPool def run_if_present(key, dct: dict, func: Callable, *args, **kwargs): @@ -28,7 +27,7 @@ class Manager: self._parse() def run_plotters(self): - index = ThreadPool(self._thread_count).map(lambda p: p['module'].run(**p['cfg']), self._plotters) + index = map(lambda p: p['module'].run(**p['cfg']), self._plotters) with open(os.path.join(self._output_dir, 'index.json'), 'w') as f: # NOTE index needs to be flattened. -- cgit v1.2.3