napari-skimage-regionprops icon indicating copy to clipboard operation
napari-skimage-regionprops copied to clipboard

Showing features of a Surface layer causes problems

Open Cryaaa opened this issue 10 months ago • 0 comments

When I use the show table widget on a surface layer which has the feature attribute set but not the properties attribute then the table widget sets the properties to an empty dictionary. This causes 2 issues:

  1. The features of the surface layer are not shown
  2. Other plugins trying to access the features see empty properties although the feature attribute is populated

I believe these lines are the culprit, so maybe we could change the checks to include both the properties and the features attribute? I will make a quick fork and pull request soon

https://github.com/haesleinhuepf/napari-skimage-regionprops/blob/e38cc72c25e1fe1c31cf31829c3e9cd53a839778/napari_skimage_regionprops/_table.py#L32-L35

Cryaaa avatar Mar 26 '24 16:03 Cryaaa