Shortcuts

data.buffer.middleware.sample_range_view

sample_range_view

sample_range_view

ding.data.buffer.middleware.sample_range_view.sample_range_view(buffer_: Buffer, start: int | None = None, end: int | None = None) Callable[source]
Overview:

The middleware that places restrictions on the range of indices during sampling.

Arguments:
  • start (int): The starting index.

  • end (int): One above the ending index.