SliceSubsetState#
- class glue.core.subset.SliceSubsetState(reference_data, slices)#
Bases:
SubsetStateA subset defined by a set of array slices.
- Parameters:
Attributes Summary
The attributes that the subset state depends on.
The data in whose space the slices are defined.
An iterable containing
sliceobjects to apply to the data.Methods Summary
copy()Return a copy of the subset state.
to_array(data, att)to_mask(data[, view])Compute the mask for this subset state.
Attributes Documentation
- attributes#
- reference_data#
The data in whose space the slices are defined.
Methods Documentation
- copy()#
Return a copy of the subset state.
- to_array(data, att)#