check

method of dascore.workflow.processor.PatchProcessor source

check(
    self ,
    patch: Patch ,
)-> ‘PatchType’

Refuse a patch which does not carry what the operation needs.

A subclass which declares required_dims, required_coords or required_attrs has to call this from its own run; nothing calls it for you yet. The framework run which will call it arrives with the first plan/kernel split.

Parameters

Parameter Description
patch The patch to check.

Returns

The patch, unchanged, so the call can stand in front of the work.

Raises

PatchCoordinateError If a required dimension or coordinate is missing. PatchAttributeError If a required attr is missing, or holds a different value.