Skip to content

Commit

Permalink
Merge pull request #2683 from pllim/imviz-rot-subset-newview
Browse files Browse the repository at this point in the history
BUG: Only access meta when it exists
  • Loading branch information
pllim authored Feb 2, 2024
2 parents 7917bfe + 2868311 commit 62231d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jdaviz/configs/imviz/plugins/orientation/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def _on_data_add_to_viewer(self, msg):
all_wcs_only_layers = all(
layer.layer.meta.get(self.app._wcs_only_label)
for layer in self.viewer.selected_obj.layers
if hasattr(layer.layer, "meta")
)
if all_wcs_only_layers and msg.data.meta.get(self.app._wcs_only_label, False):
# on adding first data layer, reset the limits:
Expand Down

0 comments on commit 62231d8

Please sign in to comment.