get#

async NDVectorsSlicer.get(indices)[source]#

Get the data slice at the given indices, applying the window functions and the spatial func.

Note that we do not use __getitem__ here since the indices are reference-space values keyed by slider dim name, not array indices. Slices are not allowed, therefore __getitem__ is not suitable here.

Parameters:

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

Returns:

data slice of shape [n_vectors, 2, 2 | 3], transposed into the display_dims display order

Return type:

ArrayProtocol