get_pieces

function of dascore.io.xdas.utils source

get_pieces(
    h5 ,
    snap = True,
)-> ‘dict[str, tuple]’

Map each patch key to its (metadata, dataset, sample offsets).

A signal whose tie points leave a hole, overlap or change the step is one patch per evenly sampled stretch, keyed <path>#<number>.