fixes
This commit is contained in:
+2
-2
@@ -12,14 +12,14 @@ template<class M>
|
||||
void makeConstructionWrapper(M & m, std::string name){
|
||||
|
||||
py::class_<ConstructionWrapper>(m, name.data()).def(py::init())
|
||||
.def("addLayer", &ConstructionWrapper::addLayer)
|
||||
.def("addLayer", &ConstructionWrapper::addLayer, py::arg("thickness"), py::arg("material"), py::arg("isActive")=true, py::arg("nx")=1, py::arg("ny")=-1)
|
||||
.def("getNSensors", &ConstructionWrapper::getNSensors);
|
||||
|
||||
}
|
||||
template<class M>
|
||||
void makeSystemBuilder(M& m, std::string name){
|
||||
py::class_<SystemBuilder>(m, name.data()).def(py::init())
|
||||
.def("init", &SystemBuilder::init)
|
||||
.def("init", &SystemBuilder::init, py::arg("cw"), py::arg("gui")=false)
|
||||
.def("run_gui", &SystemBuilder::run_gui)
|
||||
.def("run_batch", &SystemBuilder::run_batch)
|
||||
.def("visualize", &SystemBuilder::visualize);
|
||||
|
||||
Reference in New Issue
Block a user