Skip to content

Commit

Permalink
Added Simulation::logStepTimes() to python
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-fensch committed Nov 10, 2023
1 parent cc1c2b4 commit 08f495c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpsim/src/pybind/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_<DPsim::RealTimeSimulation, DPsim::Simulation>(m, "RealTimeSimulation")
.def(py::init<std::string, CPS::Logger::Level>(), "name"_a, "loglevel"_a = CPS::Logger::Level::info)
Expand Down

0 comments on commit 08f495c

Please sign in to comment.