rechunk

method of dascore.core.lazy_array.LazyArray source

rechunk(
    self ,
    bounds ,
    axis: int = 0,
)-> ‘LazyTable’

Cut the array at new bounds along one axis, giving one array each.

Parameters

Parameter Description
bounds The sample numbers the pieces are cut at, ascending; n bounds
give n - 1 arrays, and samples outside them are dropped.
axis The axis to cut along. The members must already be full width
slabs stacked along it.

Raises

NotImplementedError If the bounds overlap, or the members are not full width slabs stacked along axis. ParameterError If the bounds fall outside the array.