Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update use of deprecated napari API to viewer.layers.selection
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jun 16, 2021
1 parent a1ad844 commit df63b31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellfinder_napari/curation.py
Expand Up @@ -284,8 +284,8 @@ def mark_point_as_type(self, point_type):
)
return

if len(self.viewer.layers.selected) == 1:
layer = self.viewer.layers.selected[0]
if len(self.viewer.layers.selection) == 1:
layer = list(self.viewer.layers.selection)[0]
if type(layer) == napari.layers.Points:

if len(layer.data) > 0:
Expand Down

0 comments on commit df63b31

Please sign in to comment.