From aa65ab3da1fc1f857b09bbb613df3a10e4e9e344 Mon Sep 17 00:00:00 2001 From: Ethan Blackwood Date: Sun, 12 May 2024 16:01:38 -0400 Subject: [PATCH] Fix map_async call on DirectView causing error --- caiman/source_extraction/cnmf/spatial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caiman/source_extraction/cnmf/spatial.py b/caiman/source_extraction/cnmf/spatial.py index f8b1a833d..045027c8a 100644 --- a/caiman/source_extraction/cnmf/spatial.py +++ b/caiman/source_extraction/cnmf/spatial.py @@ -504,7 +504,7 @@ def threshold_components(A, dims, medw=None, thr_method='max', maxthr=0.1, nrgth res = dview.map_async( threshold_components_parallel, pars).get(4294967) else: - res = dview.map_async(threshold_components_parallel, pars) + res = dview.map_sync(threshold_components_parallel, pars) else: res = list(map(threshold_components_parallel, pars))