def to_casadi(self, t=None, y=None, y_dot=None, inputs=None, casadi_symbols=None): """ Convert the expression tree to a CasADi expression tree. See :class:`pybamm.CasadiConverter`. """ return pybamm.CasadiConverter(casadi_symbols).convert( self, t, y, y_dot, inputs)
def test_Andersson_2019(self): citations = pybamm.citations citations._reset() self.assertNotIn("Andersson2019", citations._papers_to_cite) pybamm.CasadiConverter() self.assertIn("Andersson2019", citations._papers_to_cite)