From 08f495c4d3fe1cdb43b1ad3a60af3e66535466c3 Mon Sep 17 00:00:00 2001 From: Philipp Fensch Date: Fri, 10 Nov 2023 13:02:01 +0100 Subject: [PATCH] Added Simulation::logStepTimes() to python --- dpsim/src/pybind/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpsim/src/pybind/main.cpp b/dpsim/src/pybind/main.cpp index 4399eeaf87..752b8c00df 100644 --- a/dpsim/src/pybind/main.cpp +++ b/dpsim/src/pybind/main.cpp @@ -182,7 +182,8 @@ PYBIND11_MODULE(dpsimpy, m) { .def("set_solver_component_behaviour", &DPsim::Simulation::setSolverAndComponentBehaviour) .def("set_direct_solver_implementation", &DPsim::Simulation::setDirectLinearSolverImplementation) .def("set_direct_linear_solver_configuration", &DPsim::Simulation::setDirectLinearSolverConfiguration) - .def("log_lu_times", &DPsim::Simulation::logLUTimes); + .def("log_lu_times", &DPsim::Simulation::logLUTimes) + .def("log_step_times", &DPsim::Simulation::logStepTimes); py::class_(m, "RealTimeSimulation") .def(py::init(), "name"_a, "loglevel"_a = CPS::Logger::Level::info)