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

python: fix logging of node voltages (closes #97)

Former-commit-id: 4a300535
parent 2a54e810
......@@ -67,7 +67,7 @@ PyObject* Python::Logger::logAttribute(Logger* self, PyObject* args, PyObject *k
PyObject *pyObj;
const char *attrName;
const char *kwlist[] = {"component", "attribute", nullptr};
const char *kwlist[] = {"obj", "attribute", nullptr};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "Os", (char **) kwlist, &pyObj, &attrName))
return nullptr;
......@@ -94,7 +94,7 @@ PyObject* Python::Logger::logAttribute(Logger* self, PyObject* args, PyObject *k
}
try {
auto a = attrList->attribute<CPS::Real>(attrName);
auto a = attrList->attribute(attrName);
self->logger->addAttribute(attrName, a);
}
......
......@@ -415,7 +415,7 @@ PyObject* Python::Simulation::addLogger(Simulation *self, PyObject *args, PyObje
return nullptr;
}
Python::Logger *pyLogger = (Python::Logger*) pyObj;
Python::Logger *pyLogger = (Python::Logger *) pyObj;
self->sim->addLogger(pyLogger->logger, downsampling);
......
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