From 04a13c79e70b2fe2b24017970cba06320acfddd8 Mon Sep 17 00:00:00 2001 From: Robert Haase Date: Wed, 16 Oct 2024 13:23:56 +0200 Subject: [PATCH 1/2] Renamed the parameter "list" to "label_image" in the `exclude_labels` function. --- pyclesperanto/_tier3.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyclesperanto/_tier3.py b/pyclesperanto/_tier3.py index 5031c207..bd632940 100644 --- a/pyclesperanto/_tier3.py +++ b/pyclesperanto/_tier3.py @@ -102,7 +102,7 @@ def remove_labels( @plugin_function def exclude_labels( input_image: Image, - list: Image, + label_image: Image, output_image: Optional[Image] =None, device: Optional[Device] =None ) -> Image: @@ -116,7 +116,7 @@ def exclude_labels( ---------- input_image: Image - list: Image + label_image: Image output_image: Optional[Image] (= None) @@ -131,7 +131,7 @@ def exclude_labels( ---------- [1] https://clij.github.io/clij2-docs/reference_excludeLabels """ - return clic._exclude_labels(device, input_image, list, output_image) + return clic._exclude_labels(device, input_image, label_image, output_image) @plugin_function(categories=["label processing", "in assistant", "bia-bob-suggestion"]) def remove_labels_on_edges( @@ -591,7 +591,7 @@ def statistics_of_background_and_labelled_pixels( Label image to compute the statistics. intensity: Optional[Image] (= None) Intensity image. - device: Optional[Device] (= None) + device: Optional[Device] =None) Device to perform the operation on. Returns @@ -602,4 +602,4 @@ def statistics_of_background_and_labelled_pixels( ---------- [1] https://clij.github.io/clij2-docs/reference_statisticsOfBackgroundAndLabelledPixels """ - return clic._statistics_of_background_and_labelled_pixels(device, label, intensity) \ No newline at end of file + return clic._statistics_of_background_and_labelled_pixels(device, label, intensity) From bd49bf45f8e37be4a54225b2556a3544fede2aae Mon Sep 17 00:00:00 2001 From: Robert Haase Date: Wed, 16 Oct 2024 13:24:08 +0200 Subject: [PATCH 2/2] Renamed the parameter "list" to "label_image" in the calls to the function exclude_labels. --- tests/test_exclude_labels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_exclude_labels.py b/tests/test_exclude_labels.py index 0906afa7..79504f6e 100644 --- a/tests/test_exclude_labels.py +++ b/tests/test_exclude_labels.py @@ -34,7 +34,7 @@ def test_exclude_labels_2d(): flaglist = cle.push(np.asarray([[0, 0, 0, 1, 1, 0, 0, 1, 0]]).astype(np.uint32)) - gpu_output = cle.exclude_labels(gpu_input, flaglist) + gpu_output = cle.exclude_labels(gpu_input, label_image=flaglist) a = cle.pull(gpu_output) b = cle.pull(gpu_reference) @@ -82,7 +82,7 @@ def test_exclude_labels_3d(): flaglist = cle.push(np.asarray([[0, 0, 0, 1, 1, 0, 0, 1, 0]]).astype(np.uint32)) - gpu_output = cle.exclude_labels(gpu_input, flaglist) + gpu_output = cle.exclude_labels(gpu_input, label_image=flaglist) a = cle.pull(gpu_output) b = cle.pull(gpu_reference)