get_axis_slice_from_interval

static DataProvider.get_axis_slice_from_interval(interval: tuple[float, float], axis: ArrayLike) slice[source]

Get a slice of indices from a min max tuple and for an axis.

Parameters:
  • interval (tuple[float, float]) – The min max tuple.

  • axis (ArrayLike) – The axis to slice.

Returns:

The slice of indices.

Return type:

slice