import dascore as dc
from dascore.utils.patch_registry import call_operation_id
first = call_operation_id(dc.proc.normalize, (), {"dim": "time"})
assert first == call_operation_id(dc.proc.normalize, ("time",))patch_registry
Name, resolve and identify patch functions.
Every patch function is registered under a tag as it is decorated: bare for DASCore’s own (normalize), package:name for a plugin’s. call_operation_id gives the id of one call’s bound arguments, which a result’s data_id is derived from.
Examples
Functions
| Name | Description |
|---|---|
| call_inputs | Return a call’s parameters, and the patches found anywhere in them. |
| call_operation | Return the id of a call, and the patches among its arguments. |
| call_operation_id | Return the id of one call to a patch function. |
| is_default | Return True if a value only restates the default it was declared with. |
| patch_function_tag | Return the tag which names a patch function. |
| register_patch_function | Add a patch function to the registry under its derived tag. |
| resolve_patch_function | Return the patch function a tag names, else say what is missing. |