EvaluatorPython#
- class pybamm.EvaluatorPython(symbol: Symbol)[source]#
Converts a pybamm expression tree into pure python code that will calculate the result of calling evaluate(t, y) on the given expression tree.
- Parameters:
symbol (
pybamm.Symbol
) – The symbol to convert to python code