From 3c5a732f35f406124f42400bd82439f07dbbddd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gordon=20J=2E=20K=C3=B6hn?= Date: Fri, 11 Oct 2024 17:09:07 +0200 Subject: [PATCH] Status Bar for Mac/Windows --- lollipop/cli/deconvolute.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lollipop/cli/deconvolute.py b/lollipop/cli/deconvolute.py index 4fffdab..b827b88 100755 --- a/lollipop/cli/deconvolute.py +++ b/lollipop/cli/deconvolute.py @@ -693,6 +693,9 @@ def deconvolute( all_deconv = [_deconvolute_bootstrap_wrapper(args) for args in args_list] # Run the deconvolution in parallel else: + multiprocessing.freeze_support() + tqdm.set_lock(multiprocessing.Manager().Lock()) + # Create a pool of workers with multiprocessing.Pool( processes=n_cores, initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)