napari-skimage-regionprops
napari-skimage-regionprops copied to clipboard
Showing features of a Surface layer causes problems
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:
- The features of the surface layer are not shown
- 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