Generating flexible FMU out of Python code with different variables #198
Unanswered
till12mann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to generate an FMU out of a running python script. I want to hand over the variables I need (I/Os of the FMU) and then build the FMU. I can build the FMU with
os.system("pythonfmu build -f fmu_generator.py VSCode")
, but when I want to hand over my variables, I have to create the class "FMUGenerator" or in case of the example code "PythonSlave" bevor building it with the prompt. I managed to hand over my variables to the FMUGenerator, but when I run theos.system
command, it does not matter what I did before to hand over my variables, and I just get :TypeError: FmuGenerator.__init__() missing 1 required positional argument: 'selected_nodes'
. Any Ideas how I can fix that? If you need any more information let me know.Beta Was this translation helpful? Give feedback.
All reactions