scipp.slices

scipp.slices(scipp_obj, dim)

Slice input along given dim, and return all the slices in a dict.

Parameters
  • [scipp_obj] (Dataset or DataArray) – Dataset or DataArray to be split into slices.

  • [dim] (str) – Dimension along which to slice.

Returns

A dictionary holding slices of the input object.

Return type

dict