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

python: add missing invocation of loggers to python simulation loop

parent 94d532fd
......@@ -133,6 +133,11 @@ void Python::Simulation::threadFunction(Python::Simulation *self)
for (auto ifm : self->sim->interfaces())
ifm.interface->close();
#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)
......
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