get#

async NDSlicer.get(indices)[source]#

Get the data slice to display at the given indices. Must be implemented in a subclass.

Called by the NDGraphic whenever the ReferenceIndex updates. Implementations usually call get_window_output(), apply the spatial_func, and transpose into the display_dims display order.

Parameters:

indices (dict[str, Any]) – Reference-space value for each slider dim, ex: {"time": 46.397, "depth": 23.24}. Must provide a value for every slider dim.

Returns:

Data slice that maps to the graphical representation, with the dims given by display_dims in display order.

Return type:

ArrayProtocol