Skip to content

Commit

Permalink
Add optional translation to Annotation & Prediction layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jluethi committed Jul 19, 2024
1 parent 5495e66 commit 751634f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/napari_feature_classifier/annotator_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def __init__(
self._last_selected_label_layer.data,
scale=self._last_selected_label_layer.scale,
name="Annotations",
translate=self._last_selected_label_layer.translate,
)
self._annotations_layer.editable = False

Expand Down
1 change: 1 addition & 0 deletions src/napari_feature_classifier/classifier_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def __init__(
self._last_selected_label_layer.data,
scale=self._last_selected_label_layer.scale,
name="Predictions",
translate=self._last_selected_label_layer.translate,
)

# Set the label selection to a valid label layer => Running into proxy bug
Expand Down

0 comments on commit 751634f

Please sign in to comment.