split_component_view¶
-
glue.core.util.
split_component_view
(arg)[source]¶ Split the input to data or subset.__getitem__ into its pieces.
Parameters: arg – The input passed to data or subset.__getitem__. Assumed to be either a scalar or tuple Return type: tuple The first item is the Component selection (a ComponentID or string)
The second item is a view (tuple of slices, slice scalar, or view object)