join_component_view

glue.core.util.join_component_view(component, view)[source]

Pack a componentID and optional view into single tuple

Returns an object compatible with data.__getitem__ and related methods. Handles edge cases of when view is None, a scalar, a tuple, etc.

Parameters:
  • component – ComponentID
  • view – view into data, or None