ElementSubsetState#
- class glue.core.subset.ElementSubsetState(indices=None, data=None)[source]#
Bases:
SubsetState
A subset defined by a set of indices to apply to the data.
- Parameters:
- indices
Any valid object that can be used to index a Numpy array.
- data
Data
The data in whose space the indices are defined.
Attributes Summary
The attributes that the subset state depends on.
The UUID of the data in whose space the indices are defined.
The indices which when applied to the data give the subset.
Methods Summary
copy
()Return a copy of the subset state.
to_mask
(data[, view])Compute the mask for this subset state.
Attributes Documentation
Methods Documentation