InvertState

class glue.core.subset.InvertState(state1, state2=None)[source]

Bases: glue.core.subset.CompositeSubsetState

A inverted subset state.

Values inside the original subset are now considered outside, and vice-versa. The original subset state can be accessed using the attribute state1.

Methods Summary

to_mask(self, data[, view])

Compute the mask for this subset state.

Methods Documentation

to_mask(self, 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.