A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://glue-core.readthedocs.io/en/latest/api/glue.core.subset.SubsetState.html below:

SubsetState — Glue documentation

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

Bases: object

The base class for all subset states.

This defaults to an empty subset.

Attributes Summary

Methods Summary

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4