Skip to content
Snippets Groups Projects
Commit 472a264c authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed Python bindings for Array

parent d9271129
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,10 @@ void export_Array(py::module & m, const char* name)
})
.def(py::self == py::self)
.def(py::self != py::self)
.def("setValue", &ArrayType::setValue)
.def("setValue", &ArrayType::setValue, py::arg("v"), py::arg("begin") = 0, py::arg("end") = 0)
// TODO: better structuring
.def("save", &ArrayType::save)
.def("load", &ArrayType::load)
.def("__str__", []( ArrayType & a ) {
std::stringstream ss;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment