CategorySubsetState¶
-
class
glue.core.subset.
CategorySubsetState
(att, categories)[source]¶ Bases:
glue.core.subset.SubsetState
A subset defined by the set of categorical values that are equal to a set of categories.
- Parameters
- att
ComponentID
The categorical data attribute used for the subset
- categoriesiterable
The categories that the attribute should be equal to. These should be given as the integer codes, not the categorical labels.
- att
Attributes Summary
The categorical data attribute used for the subset
The attributes that the subset state depends on.
The categories that the attribute should be equal to.
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
-
categories
[source]¶ The categories that the attribute should be equal to. These should be given as the integer codes, not the categorical labels.
Methods Documentation