From f736d3b30a5b299b765abd704bf375c0d72500ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:22:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- napari_clusters_plotter/_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napari_clusters_plotter/_utilities.py b/napari_clusters_plotter/_utilities.py index bb66a3b7..0255a117 100644 --- a/napari_clusters_plotter/_utilities.py +++ b/napari_clusters_plotter/_utilities.py @@ -340,8 +340,8 @@ def generate_cluster_image(label_image, label_list, predictionlist): # we take the maximum of either the labels in the image # or the labels in the list to take care of the case, where # the label list contains labels not in the image - int(max([label_image.max(), np.max(label_list)])) + 1, - dtype=np.uint32 + int(max([label_image.max(), np.max(label_list)])) + 1, + dtype=np.uint32, ) plist[label_list] = predictionlist_new