check_patch_data

function of dascore.utils.patch source

check_patch_data(
    patch: Patch ,
)-> ‘PatchType’

Check that a patch holds data, else raise.

A patch built without data (Patch.drop_data) describes data; it cannot be processed, even by an operation which would change nothing.

Raises

PatchDataError If the patch was built without data.