From 472a264c43d323a61189a2ffb1443ec2b67965db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkovsky@mmg.fjfi.cvut.cz>
Date: Tue, 7 Jan 2020 16:05:06 +0100
Subject: [PATCH] Fixed Python bindings for Array

---
 src/Python/pytnl/tnl/Array.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Python/pytnl/tnl/Array.h b/src/Python/pytnl/tnl/Array.h
index 6e19878de0..b92f22f0d7 100644
--- a/src/Python/pytnl/tnl/Array.h
+++ b/src/Python/pytnl/tnl/Array.h
@@ -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;
-- 
GitLab