Skip to content

Commit

Permalink
Update jdaviz/configs/imviz/plugins/orientation/orientation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 authored Jan 5, 2024
1 parent 89dfa63 commit d6f5525
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jdaviz/configs/imviz/plugins/orientation/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,11 @@ def _on_refdata_change(self, msg):
elif not len(viewer.data()):
self.link_type_selected = link_type_msg_to_trait['pixels']

if msg._data.label not in self.orientation.choices:
if msg.data.label not in self.orientation.choices:
return

self.orientation.selected = msg._data.label
self.orientation.selected = msg.data.label


# we never want to highlight subsets of pixels within WCS-only layers,
# so if this layer is an ImageSubsetLayerState on a WCS-only layer,
Expand Down

0 comments on commit d6f5525

Please sign in to comment.