Skip to content

Commit 751634f

Browse files
committed
Add optional translation to Annotation & Prediction layer
1 parent 5495e66 commit 751634f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/napari_feature_classifier/annotator_widget.py

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def __init__(
138138
self._last_selected_label_layer.data,
139139
scale=self._last_selected_label_layer.scale,
140140
name="Annotations",
141+
translate=self._last_selected_label_layer.translate,
141142
)
142143
self._annotations_layer.editable = False
143144

src/napari_feature_classifier/classifier_widget.py

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def __init__(
254254
self._last_selected_label_layer.data,
255255
scale=self._last_selected_label_layer.scale,
256256
name="Predictions",
257+
translate=self._last_selected_label_layer.translate,
257258
)
258259

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

0 commit comments

Comments
 (0)