Skip to content

Commit

Permalink
Fix: add missing stop function in the Simulation using pybind
Browse files Browse the repository at this point in the history
This commit fixes an error when using the dpsim python interface.
The stop function was not declared in the pybind/main.cpp and then not exposed in python.

Signed-off-by: Leonardo Carreras <[email protected]>
  • Loading branch information
leonardocarreras committed Oct 4, 2023
1 parent 97f8e1f commit 9b63b70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dpsim/src/pybind/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ PYBIND11_MODULE(dpsimpy, m) {
.def("set_domain", &DPsim::Simulation::setDomain)
.def("start", &DPsim::Simulation::start)
.def("next", &DPsim::Simulation::next)
.def("stop", &DPsim::Simulation::stop)
.def("get_idobj_attr", &DPsim::Simulation::getIdObjAttribute, "comp"_a, "attr"_a)
.def("add_interface", &DPsim::Simulation::addInterface, "interface"_a)
.def("log_idobj_attribute", &DPsim::Simulation::logIdObjAttribute, "comp"_a, "attr"_a)
Expand Down

0 comments on commit 9b63b70

Please sign in to comment.