Commit 86d13198 authored by Laurent Belcour's avatar Laurent Belcour

[Python] Correct indentation

parent 58bf8da0
......@@ -47,12 +47,13 @@ static ptr<data> get_data(const std::string& plugin_name, size_t size,
/* Register the `data` class to python
*/
inline void register_data(py::module& m) {
py::class_<data, ptr<data>>(m, "data")
.def("size", &data::size)
.def("get", &data::get)
.def("set", &data::set)
.def("save", &data::save);
m.def("get_data", get_data);
m.def("get_data", get_data_with_args);
m.def("load_data", load_data);
}
\ No newline at end of file
py::class_<data, ptr<data>>(m, "data")
.def("size", &data::size)
.def("get", &data::get)
.def("set", &data::set)
.def("save", &data::save)
.def("parametrization", &data::parametrization);
m.def("get_data", get_data);
m.def("get_data", get_data_with_args);
m.def("load_data", load_data);
}
Markdown is supported
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