MaskSubsetState¶
-
class
glue.core.subset.
MaskSubsetState
(mask, cids)[source]¶ Bases:
glue.core.subset.SubsetState
A subset defined by a boolean mask.
- Parameters
- mask~numpy.ndarray
The boolean mask to apply to the data.
- cidsiterable of
ComponentID
The component IDs along which the mask applies.
Attributes Summary
The attributes that the subset state depends on.
The component IDs along which the mask applies.
The boolean mask to apply to the data.
Methods Summary
copy
(self)Return a copy of the subset state.
to_mask
(self, data[, view])Compute the mask for this subset state.
Attributes Documentation
Methods Documentation