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
NDGraphicwhenever theReferenceIndexupdates. Implementations usually callget_window_output(), apply thespatial_func, and transpose into thedisplay_dimsdisplay 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_dimsin display order.- Return type:
ArrayProtocol