Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating flexible FMU out of Python code with different variables, problem creating class before build #200

Open
till12mann opened this issue Dec 12, 2023 Discussed in #198 · 0 comments

Comments

@till12mann
Copy link

Discussed in #198

Originally posted by till12mann December 12, 2023
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. Is that even possible? Because what ever I do, I always get a KeyError: 'instance_name'. Any Ideas how I can fix that? If you need any more information let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant