merge_patches

function of dascore.utils.patch source

merge_patches(
    patches: collections.abc.Sequence[Patch] | DataFrame | BaseSpool ,
    dim: str = time,
    check_history: bool = True,
    tolerance: float = 1.5,
)-> ‘Sequence[PatchType]’

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.