merge_patches

function of dascore.utils.patch source

merge_patches(
    patches: Sequence[Patch] | DataFrame | BaseSpool ,
    dim: str ,
    check_history: bool ,
    tolerance: float ,
)-> Sequence[Patch]

Merge all compatible patches in spool or patch list together.

Parameters

Parameter Description
patches A sequence of patches to merge (if compatible)
dim The dimension along which to merge
check_history If True, only merge patches with common history. This will, for example, prevent merging filtered and unfiltered data together.
tolerance The upper limit of a gap to tolerate in terms of the sampling along the desired dimension. E.G., the default value means any patches with gaps <= 1.5 * dt will be merged.