on_stretch_grid

function of dascore.utils.patch_assembly source

on_stretch_grid(
    coords: CoordManager ,
    dim: str ,
    row: Mapping ,
)-> ‘CoordManager’

The coordinates with dim labelled by the stretch grid row names.

A chunk plan fits one grid to each stretch of joined patches and gives each output’s members its slice (_{dim}_stretch); an output whose stretch keeps its one patch’s own labels names none and is returned as it is. The grid is in the plan’s dtype; a time counted in another unit keeps it where every label is whole in that unit, and otherwise takes nanoseconds, as the plan does. A coordinate which did not load the samples the plan numbered keeps the labels it was assembled with.