This commit is contained in:
Jan Kieseler
2023-09-08 22:53:07 +02:00
parent 7716c03bf5
commit a03b3d780a
7 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ void makeSystemBuilder(M& m, std::string name){
.def("visualize", &SystemBuilder::visualize);
}
PYBIND11_MODULE(bindings, m) {
m.doc() = "pybind11 example plugin"; // optional module docstring
PYBIND11_MODULE(minicalo, m) {
m.doc() = "pybind11 plugin"; // optional module docstring
makeConstructionWrapper(m, "ConstructionWrapper");
makeSystemBuilder(m, "SystemBuilder");
}
+2 -2
View File
@@ -1,5 +1,5 @@
from bindings import ConstructionWrapper, SystemBuilder
from minicalo import ConstructionWrapper, SystemBuilder
cw = ConstructionWrapper()
cw.addLayer(10,"G4_Si",True)
@@ -8,4 +8,4 @@ cw.addLayer(10,"G4_Si",False)
sb = SystemBuilder()
sb.init(cw)
sb.run_batch(100, "e-", 1000, 5000)
sb.run_batch(100, "e-", 1000, 5000)