MaskSubsetState#
- class glue.core.subset.MaskSubsetState(mask, cids)#
Bases:
SubsetStateA subset defined by a boolean mask.
- Parameters:
- mask
ndarray The boolean mask to apply to the data.
- cidsiterable of
ComponentID The component IDs along which the mask applies.
- mask
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()Return a copy of the subset state.
to_mask(data[, view])Compute the mask for this subset state.
Attributes Documentation
- attributes#
- cids#
The component IDs along which the mask applies.
- mask#
The boolean mask to apply to the data.
Methods Documentation
- copy()#
Return a copy of the subset state.