fixes
This commit is contained in:
+2
-2
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user