derive

function of dascore.utils.identity source

derive(
    inputs: collections.abc.Sequence[str] ,
    operation: str ,
    output: int | None[int, None] = None,
)-> ‘str’

Return the data id of an operation’s result.

Parameters

Parameter Description
inputs The data ids of the patches the operation was given, in order.
operation The operation’s id; see
operation_id.
output The result’s position among the patches the operation returned.
None for an operation which returns one patch.