Commit ca8b4839 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

python: add missing invocation of loggers to python simulation loop

Former-commit-id: add42b0f
parent b41b1448
...@@ -133,6 +133,11 @@ void Python::Simulation::threadFunction(Python::Simulation *self) ...@@ -133,6 +133,11 @@ void Python::Simulation::threadFunction(Python::Simulation *self)
for (auto ifm : self->sim->interfaces()) for (auto ifm : self->sim->interfaces())
ifm.interface->close(); ifm.interface->close();
#endif #endif
for (auto lg : self->sim->loggers()) {
if (self->sim->timeStepCount() % lg.downsampling == 0)
lg.logger->log(self->sim->time());
}
} }
PyObject* Python::Simulation::newfunc(PyTypeObject* subtype, PyObject *args, PyObject *kwds) PyObject* Python::Simulation::newfunc(PyTypeObject* subtype, PyObject *args, PyObject *kwds)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment