This commit is contained in:
Jan Kieseler
2023-09-08 16:53:16 +02:00
parent a60d901647
commit e9556b75ea
+2 -2
View File
@@ -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);