MultiOrState

class glue.core.subset.MultiOrState(states)[source]

Bases: glue.core.subset.SubsetState

A state for many states to be combined together with an ‘or’ operation.

This is meant to be used for cases where many subset states are meant to be combined together and provides significant performance enhancements compared to chaining individual OrStates

Attributes Summary

attributes

The attributes that the subset state depends on.

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

attributes[source]

The attributes that the subset state depends on.

Methods Documentation

copy(self)[source]

Return a copy of the subset state.

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.