Skip to content

Commit

Permalink
#37 Fixed bug in largest_cc_of where the verbose argument for plottin…
Browse files Browse the repository at this point in the history
…g was positional, when it should be named.
  • Loading branch information
carljohnsen committed Oct 7, 2024
1 parent d039049 commit afc1b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/py/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afc1b69

Please sign in to comment.