Client

class glue.core.client.Client(data)[source]

Bases: glue.core.hub.HubListener

Base class for interaction / visualization modules

Attributes

data: DataCollection instance The data associated with this client.

Create a new client object.

Parameters:

data: Data, DataCollection, or list of data

The primary data associated with this client.

Raises:

TypeError: If the data input is the wrong type

Attributes Summary

data Returns the data collection

Methods Summary

apply_roi(roi)
register_to_hub(hub) The main method to establish a link with a hub, and set up event handlers.

Attributes Documentation

data[source]

Returns the data collection

Methods Documentation

apply_roi(roi)[source]
register_to_hub(hub)[source]

The main method to establish a link with a hub, and set up event handlers. For common message types

Client subclasses at a minimum should override these methods to provide functionality: _add_subset _update_subset _remove_subset _remove_data

Clients can also override register_to_hub to add additional event handlers.

Attributes

hub: The hub to subscribe to