align_patch_coords

function of dascore.utils.patch source

align_patch_coords(
    patch1: Patch ,
    patch2: Patch ,
)-> ‘tuple[PatchType, PatchType]’

Align two patches of the same kind so their data broadcast together.

The patches must be the same kind (see check_kind). Dimensions only one patch has are appended to the other as length one; dimensions both have are aligned on the intersection of their coordinate values, and an empty intersection raises: sharing a dimension but none of its values is a conflict, not an empty answer.

Parameters

Parameter Description
patch1 The first patch.
patch2 The second patch.