Skip to content

Commit

Permalink
more readable conditional for future us
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 authored and cshanahan1 committed Sep 6, 2024
1 parent aade68d commit 498659f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jdaviz/configs/default/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ def _expected_subset_layer_default(self, layer_state):
return

# default visibility based on the visibility of the "parent" data layer
if self.__class__.__name__ != 'RampvizProfileView':
layer_state.visible = self._get_layer(layer_state.layer.data.label).visible
else:
if self.__class__.__name__ == 'RampvizProfileView':
# Rampviz doesn't show subset profiles by default:
layer_state.visible = False
else:
layer_state.visible = self._get_layer(layer_state.layer.data.label).visible

def _update_layer_icons(self):
# update visible_layers (TODO: move this somewhere that can update on color change, etc)
Expand Down

0 comments on commit 498659f

Please sign in to comment.