get_precedence_expr
- sherpa.models.op.get_precedence_expr(expr: Any) int [source] [edit on github]
Return precedence for the expression.
This is the precedence of the operator in the expression, if one exists.
- Parameters:
expr (Model or Parameter) – The expression. It may have a .opprec field.
- Returns:
prec – The “precedence” value
sherpa.models.op.NO_PRECEDENCE
is returned if expr has an unknown operator or it does not contain an operator.- Return type: