caterva2.Dataset.fetch#

Dataset.fetch(slice_=None)#

Fetch a slice of a dataset.

Equivalent to __getitem__().

Parameters:

slice_ (int, slice, tuple of ints and slices, or None) – The slice to fetch.

Returns:

The slice of the dataset.

Return type:

numpy.ndarray