check_patch_data

function of dascore.utils.patch source

check_patch_data(
    patch: PatchMeta ,
)-> ‘PatchMetaType’

Check that data are in reach, else raise.

A PatchMeta describes data it does not hold, so an operation which computes data cannot run on one. A method is out of reach there, being bound to Patch, but a bare call is not: this is what turns dc.proc.pass_filter(meta) into a clear error rather than an AttributeError from somewhere inside the operation.

Raises

PatchDataError If given a patch’s metadata rather than the patch.