CategoricalROISubsetState2D

class glue.core.subset.CategoricalROISubsetState2D(categories, att1, att2)[source]

Bases: glue.core.subset.SubsetState

A 2D subset state where both attributes are categorical.

Parameters:

categories : dict

A dictionary containing for each label of one categorical component an interable of labels for the other categorical component (using sets will provide the best performance)

att1 : ComponentID

The component ID matching the keys of the categories dictionary

att2 : ComponentID

The component ID matching the values of the categories dictionary

Attributes Summary

attributes

Methods Summary

copy()
to_mask(data[, view])

Attributes Documentation

attributes[source]

Methods Documentation

copy()[source]
to_mask(data, view=None)[source]