Skip to content

Commit

Permalink
Fix annotator widget right-click deselection: Set to np.NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
jluethi committed Jul 19, 2024
1 parent 0950ccf commit b43b5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_feature_classifier/annotator_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def toggle_label(self, labels_layer, event):
elif event.button == 2:
labels_layer.features.loc[
labels_layer.features[self._label_column] == label, "annotations"
] = 0.0
] = np.NaN

# Update only the single color value that changed
self.update_single_color(labels_layer, label)
Expand Down

0 comments on commit b43b5e0

Please sign in to comment.