mario.CoreModel.register_operator#
- CoreModel.register_operator(spec, *, replace: bool = False)#
Register a custom compute operator on the current database.
- Parameters:
spec – Operator specification describing the output block and the function used to compute it.
replace – When
True, replace an already registered operator with the same name.
- Returns:
The registered operator specification.
- Return type:
object
Notes
Custom operators complement the built-in compute catalog. They are typically created through helpers in
mario.compute, such asratio_operator(...)ormatrix_product_operator(...).