From ee6e089325541987c67901885d40adb2e3ae13f8 Mon Sep 17 00:00:00 2001 From: Robert Haase Date: Sat, 28 May 2022 21:08:42 +0200 Subject: [PATCH] fix more tests --- napari_skimage_regionprops/_regionprops.py | 2 +- napari_skimage_regionprops/_tests/test_function.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/napari_skimage_regionprops/_regionprops.py b/napari_skimage_regionprops/_regionprops.py index 6bb05d2..b34b09c 100644 --- a/napari_skimage_regionprops/_regionprops.py +++ b/napari_skimage_regionprops/_regionprops.py @@ -14,7 +14,7 @@ def regionprops(image_layer : napari.layers.Layer, labels_layer: napari.layers.L if image_layer is not None: image_data = image_layer.data - regionprops_table(image_data, labels_layer.data, napari_viewer, size, intensity, perimeter, shape, position, moments) + regionprops_table(image_data, labels_layer.data, size, intensity, perimeter, shape, position, moments, napari_viewer) @register_function(menu="Measurement > Regionprops (scikit-image, nsr)") def regionprops_table(image : napari.types.ImageData, labels: napari.types.LabelsData, size : bool = True, intensity : bool = True, perimeter : bool = False, shape : bool = False, position : bool = False, moments : bool = False, napari_viewer : Viewer = None) -> "pandas.DataFrame": diff --git a/napari_skimage_regionprops/_tests/test_function.py b/napari_skimage_regionprops/_tests/test_function.py index 361d372..f454d31 100644 --- a/napari_skimage_regionprops/_tests/test_function.py +++ b/napari_skimage_regionprops/_tests/test_function.py @@ -26,7 +26,7 @@ def test_regionprops(make_napari_viewer): # analyze everything we can from napari_skimage_regionprops import regionprops - regionprops(image_layer, labels_layer, viewer, True, True, True, True, True, True) + regionprops(image_layer, labels_layer, True, True, True, True, True, True, viewer) # there is now a table in the viewer assert len(viewer.window._dock_widgets) == num_dw + 1