CategoricalROISubsetState#

class glue.core.subset.CategoricalROISubsetState(att=None, roi=None)[source]#

Bases: SubsetState

A subset defined as the set of values for a categorical data attribute that fall inside a categorical region of interest (ROI).

Parameters:
attComponentID

The categorical data attribute used for the subset.

roiCategoricalROI

The categorical region of interest.

Attributes Summary

att

The categorical data attribute used for the subset.

attributes

The attributes that the subset state depends on.

roi

The categorical region of interest.

Methods Summary

copy()

Return a copy of the subset state.

from_range(categories, att, lo, hi)

to_mask(data[, view])

Compute the mask for this subset state.

Attributes Documentation

att[source]#

The categorical data attribute used for the subset.

attributes[source]#
roi[source]#

The categorical region of interest.

Methods Documentation

copy()[source]#

Return a copy of the subset state.

static from_range(categories, att, lo, hi)[source]#
to_mask(data, view=None)[source]#

Compute the mask for this subset state.

Parameters:
dataData

The dataset to compute the mask for.

view

Any object that returns a valid view for a Numpy array.