SubsetState#

class glue.core.subset.SubsetState[source]#

Bases: object

The base class for all subset states.

This defaults to an empty subset.

Attributes Summary

attributes

The attributes that the subset state depends on.

subset_state

Methods Summary

center()

Return center of underlying ROI, if any.

copy()

Return a copy of the subset state.

move_to(*args)

Move any underlying ROI to the new given center.

to_index_list(data)

to_mask(data[, view])

Compute the mask for this subset state.

Attributes Documentation

attributes[source]#

The attributes that the subset state depends on.

subset_state[source]#

Methods Documentation

center()[source]#

Return center of underlying ROI, if any.

copy()[source]#

Return a copy of the subset state.

move_to(*args)[source]#

Move any underlying ROI to the new given center.

to_index_list(data)[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.