check_patch_coords

function of dascore.workflow.checks source

check_patch_coords(
    patch: Patch ,
    dims: collections.abc.Sequence[collections.abc.Sequence[str], None] = None,
    coords: collections.abc.Sequence[collections.abc.Sequence[str], None] = None,
)-> ‘PatchType’

Check that a patch has the required coordinates, else raise.

Parameters

Parameter Description
patch The input patch
dims A dimension name, or a sequence of them.
coords A coordinate name, or a sequence of them.

Raises

PatchCoordinateError If the patch is missing any of them.