Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make label layer visible #27

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/napari_tomotwin/load_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def _draw_circle(self, data_coordinates, label_layer, umap):
'''
Adds a circle on the umap when you click on the image
'''
label_layer.visible = True
val = label_layer._get_value(data_coordinates)

umap_coordinates = umap.loc[
Expand Down Expand Up @@ -75,8 +76,8 @@ def show_umap(self, label_layer):

#label_layer = self.viewer.add_labels(lbl_data, name='Label layer', features=self.umap, properties=self.umap)

label_layer.opacity = 0.5
label_layer.visible = False
label_layer.opacity = 0
label_layer.visible = True

@self.viewer.mouse_drag_callbacks.append
def get_event(viewer, event):
Expand Down
Loading