-
Notifications
You must be signed in to change notification settings - Fork 6
Description
As discussed, we might need to be able to export a Python simulation to an FMU at some point.
While simulating Modelica models #1 and FMUs #2 with Python is very straight forward, creating an FMU from Python code seems more complicated.
It is possible though, and this might be a good starting point:
https://pypi.org/project/SimulatorToFMU/
https://github.com/LBNL-ETA/SimulatorToFMU
While the published version includes a note that it works with Python 2.7, the GitHub project has a development branch with support for Python 3.7. See the discussion here:
https://groups.google.com/forum/#!topic/simulatortofmu/P3WE1m2vvBs
Note: I am not planning to work on this any time soon, I am just creating this issue for reference. Someone who actually simulates in Python should assign this to themselfes.