Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed May 28, 2022
1 parent 0133d63 commit ee6e089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion napari_skimage_regionprops/_regionprops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion napari_skimage_regionprops/_tests/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee6e089

Please sign in to comment.