Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Aug 16, 2022
1 parent f6808b1 commit bab566a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jdaviz/configs/cubeviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ def _on_subset_delete(self, msg):
m.spectral_subset_mark in spectral_marks))]

def _expected_subset_layer_default(self, layer_state):
"""
This gets called whenever the layer of an expected new subset is added, we want to set the
default for the linewidth depending on whether it is spatial or spectral, and handle
creating any necessary marks for spatial-spectral subset intersections.
"""
super()._expected_subset_layer_default(layer_state)

this_mark = self._get_marks_for_layers([layer_state])[0]
Expand Down

0 comments on commit bab566a

Please sign in to comment.