DatasetSpectralSubsetValidMixin#
- class jdaviz.core.template_mixin.DatasetSpectralSubsetValidMixin(**kwargs: Any)[source]#
Bases:
VuetifyTemplate
,HubListener
Adds a traitlet tracking whether self.dataset and self.spectral_subset overlap in the spectral axis.
Note that if using in another method that is also observing dataset_selected or spectral_subset_selected, that that method could be called before the traitlet is updated. In that case, call self._check_dataset_spectral_subset_valid() itself directly. The traitlet can still be used for any warning text in the plugin UI.
Public constructor
Attributes Summary
A boolean (True, False) trait.
Attributes Documentation
- spectral_subset_valid#
A boolean (True, False) trait.