How to use `ModelicaSystem.convertFmu2Mo()`
I haven't found any examples or tests for it.
Do I really have to create a dummy .mo model file, load it and compile it (see ModelicaSystem.__init__()) just to convert a *.fmu to a *.mo?
At first glance, I think this function would be easier to use if it was a @classmethod that constructed a ModelicaSystem from the FMU.
@ondras12345 here is a test case which does that https://github.com/OpenModelica/OMPython/blob/master/tests/test_FMIExport.py
Isn't that the other way around? I see convertMo2Fmu() in the test case, but I was asking about convertFmu2Mo().
Here it could help to split ModelicaSystem.__init__() into two parts:
(1) basic setup of the class and
(2) definition of all model related options (fileName, modelName, lmodel, variableFilter (?), build)
Thus, one could run __init__ and after that a new method handling part (2) or convertFmu2Mo() (as method or defined as @classmethod returning a ModelicaSystem on its own; however, in the later case, the options for (1) must be provided)
@syntron is this already fixed?