Bases: HubListener
The top-level object for interacting with datasets in Glue.
DataCollections have the following responsibilities:
Providing a way to retrieve and store data
Broadcasting messages when data are added or removed
Keeping each managed data set’s list of
DerivedComponent
instances up-to-dateCreating the hub that all other objects should use to communicate with one another (stored in
self.hub
)
Data
, or list of such, optional
The data objects to be stored in the collection.
Attributes Summary
Methods Summary
Attributes Documentation
The Data
objects in the collection
Tuple of ComponentLink
objects.
Tuple of ComponentLink
objects.
tuple of current Subset Groups
Methods Documentation
Add one or more links to the data collection.
This will auto-update the components in each data set.
ComponentLink
, or iterable of such, or LinkCollection
The links to add.
Add a new dataset to this collection.
Appending emits a DataCollectionAddMessage. It also updates the list of DerivedComponents that each data set can work with.
BaseCartesianData
, or list of such
The dataset to add.
Context manager to delay any updates to the link manager until the context is exited.
This can be useful for improving performance if e.g. several datasets or links are being added to the data collection, since otherwise the link manager updates its internal tree representation of the links after each operation.
Add several new datasets to this collection.
See append()
for more information.
BaseCartesianData
The datasets to add.
Merge two or more datasets into a single dataset.
This has the following effects:
All components from all datasets are added to the first argument. All datasets except the first argument are removed from the collection. Any component name conflicts are disambiguated. The pixel and world components apart from the first argument are discarded.
Data
Two or more datasets to be added to this collection.
Notes
All arguments must have the same shape.
Create and return a new Subset Group.
The label to assign to the group.
SubsetState
The state to initialize the group with.
SubsetGroup
Register managed data objects to a hub.
Hub
The hub to register with.
Remove a data set from the collection, if present.
Emits a DataCollectionDeleteMessage.
Data
The data object to remove.
Remove one or more links from the data collection.
This will auto-update the components in each data set.
ComponentLink
, or iterable of such, or LinkCollection
The links to remove.
Remove an existing SubsetGroup
Override the links in the collection, and update data objects as necessary.
ComponentLink
, or iterable of such, or LinkCollection
The new links.
Determine what merge label to suggest given datasets
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