-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileevaluatorIssues related to the evaluatorIssues related to the evaluator
Description
To expose the parsed TFormula nodes for use in downstream libraries like correctionlib-gradients, we expose py::enum_ types such as
Lines 141 to 146 in f5c490f
| py::enum_<FormulaAst::NodeType>(formula_ast, "NodeType") | |
| .value("LITERAL", FormulaAst::NodeType::Literal) | |
| .value("VARIABLE", FormulaAst::NodeType::Variable) | |
| .value("PARAMETER", FormulaAst::NodeType::Parameter) | |
| .value("UNARY", FormulaAst::NodeType::Unary) | |
| .value("BINARY", FormulaAst::NodeType::Binary); |
As of pybind11 v3, these are deprecated in favor of
py::native_enumSee https://pybind11.readthedocs.io/en/stable/classes.html#enumerations-and-internal-types for details.
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileevaluatorIssues related to the evaluatorIssues related to the evaluator