sogno-platform / dpsim

Real-time power system simulator including powerflow, (dynamic) phasors and EMT
https://sogno.energy/dpsim/
Mozilla Public License 2.0
67 stars 49 forks source link

Fix: add missing stop function in the Simulation using pybind #246

Closed leonardocarreras closed 1 year ago

leonardocarreras commented 1 year ago

This commit fixes an error when using the dpsim python interface (dpsimpy).

The stop function was not declared in the pybind/main.cpp and then not exposed in python. The result was that the program gets an exception and the last data is not written to the output.

A line was added to expose the stop function.