spekk.util.slicing

spekk.util.slicing#

Slice data using a Spec.

Functions

slice_array_1(arr, axis, indices)

Select the indices along the given axis of an array.

slice_data(data, spec, slice_definitions)

Slice the data given a spec and a dict (kwargs) of slice definitions.

slice_spec(spec, slice_definitions)

Classes

Sliceable(*args, **kwargs)