From afc1b696ff70bf6e6b7843da90993288c761e7d1 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Mon, 7 Oct 2024 18:51:15 +0200 Subject: [PATCH] #37 Fixed bug in largest_cc_of where the verbose argument for plotting was positional, when it should be named. --- src/lib/py/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/py/helpers.py b/src/lib/py/helpers.py index 97cca55..ed6f5cf 100644 --- a/src/lib/py/helpers.py +++ b/src/lib/py/helpers.py @@ -718,8 +718,8 @@ def label_worker(dataset, start, end): final_n_labels = lib_connected_components.merge_labeled_chunks(labels, np.array(n_labels), (n_chunks, layers_per_chunk, ny, nx), verbose) if plotting: - plot_middle_planes(labels, plotting_dir, 'labeled', verbose) - plot_middle_planes(labels > 0, plotting_dir, 'labeled_binary', verbose) + plot_middle_planes(labels, plotting_dir, 'labeled', verbose=verbose) + plot_middle_planes(labels > 0, plotting_dir, 'labeled_binary', verbose=verbose) # TODO use lib_general.bincount at some point. bincounts = np.bincount(labels[labels > 0], minlength=final_n_labels+1)