import dascore as dc
from dascore.utils.patch_registry import call_operation_id
called = call_operation_id(dc.proc.normalize, (), {"dim": "time"})
assert called == call_operation_id(dc.proc.normalize, ("time",))call_operation_id
call_operation_id(
func ,
args: <class ‘tuple = (),
kwargs: dict | None[<class ’dict, None] = None,
)-> ’str’
Return the id of one call to a patch function.
Positional and keyword spellings of one call bind alike, and an argument left at its default is the same call as one which passes it, so they are one operation with one id.
Parameters
| Parameter | Description |
|---|---|
| func | The patch function, as decorated. |
| args | The positional arguments of the call, without the patch. |
| kwargs | The keyword arguments of the call. |