EvaluatorPython

class pybamm.EvaluatorPython(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