checks

module of dascore.workflow source

What an operation requires of a patch before it runs.

A patch function, and a PatchProcessor written by hand for one, may say which dimensions, coordinates and attributes it needs. Both ask here, so the answer is the same however the operation was reached.

These live outside dascore.utils.patch because dascore.workflow.processor is imported while dascore.utils.patch is still being imported – from its header, by way of this module – so importing dascore.utils.patch back would raise on a partially initialized module.

Functions

Name Description
check_patch_attrs Check for expected attributes.
check_patch_coords Check that a patch has the required coordinates, else raise.