InvertState

InvertState#

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

Bases: CompositeSubsetState

An 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(data[, view])

Compute the mask for this subset state.

Methods Documentation

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.