-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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
napari-skimage-regionprops/napari_skimage_regionprops/_table.py
Lines 32 to 35 in e38cc72
if hasattr(layer, "properties"): | |
self.set_content(layer.properties) | |
else: | |
self.set_content({}) |
haesleinhuepf
Metadata
Metadata
Assignees
Labels
No labels