PatchProcessor

class of dascore.workflow.processor
inherits from: Task, DascoreBaseModel, pydantic.main.BaseModel
source

PatchProcessor()-> None

A task which runs on a patch, written out by hand.

Subclasses declare their parameters as fields and say what a patch has to carry for the operation to mean anything. They exist where an operation wants a seam a whole function does not have – a kernel to dispatch, a plan to reuse – and are registered with register_implementation so that the patch function’s name reaches them.

Methods

Name Description
check Refuse a patch which does not carry what the operation needs.
derive_meta Return what the result’s metadata is.
fingerprint_at Return the digest which identifies this operation and its arguments.
model_post_init Record the version the function was at when this was built.
new Create new instance with some attributed updated.
plan_kernel Return the array function this call is, or None to touch no data.
reconcile Return the metadata the data actually turned out to have.
run Run the operation against a patch.
save Write this task to a file, and return where it was written.
to_dict Return a document which describes this operation.
update Return a new task with some parameters changed.