operation_id

function of dascore.utils.identity source

operation_id(
    name: str ,
    params: collections.abc.Mapping[str, Any] ,
    version: str = 1.0,
)-> ‘str’

Return the id of an operation and its parameters.

Parameters

Parameter Description
name What was done: a patch function’s registry tag, or a capitalized
kind for the operations which are not patch functions.
params What it was done with, any patch already replaced by its
PatchMarker.
version The operation’s version; bump it when the same parameters mean a
different result, a changed default included.