From 3a2c7130efee71450ae938f73ea6d9bdcaa86dbc Mon Sep 17 00:00:00 2001 From: jules-vanaret Date: Thu, 9 Jan 2025 02:14:24 +0100 Subject: [PATCH] solved bug with reorganize function --- src/napari_tapenade_processing/_widget.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/napari_tapenade_processing/_widget.py b/src/napari_tapenade_processing/_widget.py index 05dcc1c..1f0d86c 100644 --- a/src/napari_tapenade_processing/_widget.py +++ b/src/napari_tapenade_processing/_widget.py @@ -2711,7 +2711,7 @@ def _run_macro(self): parallel_function(i) # * functions that need special wrapping (e.g cropping) elif function_name == "reorganize_array_dimensions": - if func_params["bool_seperate_channels"]: + if not func_params["bool_seperate_channels"]: output_id = next( iter(output_params_to_layer_ids_dict.values()) ) @@ -2722,7 +2722,6 @@ def _run_macro(self): layer_id_to_folder_path_dict[output_id] for output_id in output_ids ] - output_folder = layer_id_to_folder_path_dict[output_id] reorganize_array_dimensions_from_files( input_params_to_list_of_tifpaths_dict["array"], output_folders,