Bases: object
Base class for any glue data object which indicates which methods should be provided at a minimum.
For now, subclasses of BaseData are not guaranteed to work in glue, and you should instead subclass BaseCartesianData.
Attributes Summary
Methods Summary
Attributes Documentation
A list of ComponentID
giving all available components in the data
A list of ComponentID
giving all coordinate components in the data
The name of the dataset
A list of ComponentID
giving all pixel coordinate components in the data
Tuple of subsets attached to this dataset.
A list of ComponentID
giving all world coordinate components in the data
Methods Documentation
Assign a pre-existing subset to this data object.
Subset
or SubsetState
The subset to be assigned. If this is a ~glue.core.subset.SubsetState, it will be wrapped in a new Subset automatically
Notes
The preferred way for creating subsets is via new_subset_group()
. Manually-instantiated subsets will not be represented properly by the UI.
Send a DataUpdateMessage
to the hub
Name of an attribute that has changed (or None).
Find a component ID by name.
This returns the associated ComponentID if label is found and unique, and None otherwise.
Get the kind of data for a given component.
ComponentID
The component ID to get the data kind for
The kind of data for the given component ID.
Get the dataset represented as a non-glue object, using the translation infrastructure.
The class to use for representing the data object. If a non-glue data object was added to the glue data collection, it should automatically be returned using the same class as it was provided in, and this argument shouldn’t be needed.
Get subset state represented as a non-glue object, using the translation infrastructure.
The name or index of the subset to retrieve.
The format to translate the subset state to.
Get a subset represented as a non-glue object, using the translation infrastructure.
The name or index of the subset to retrieve.
The class to use for representing the data object. If a non-glue data object was added to the data collection, the subset should automatically be returned using the same class as it was provided in, and this argument shouldn’t be needed.
Create a new subset, and attach to self.
Subset
or SubsetState
, optional
Reference subset or subset state. If provided, the new subset will copy the logic of this subset.
Notes
The preferred way for creating subsets is via new_subset_group()
. Manually-instantiated subsets will not be represented properly by the UI.
Connect to a hub.
This method usually doesn’t have to be called directly, as DataCollections manage the registration of data objects
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