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

BuildingAHU falsely created by json input #777

Open
PGorzalka opened this issue Nov 6, 2024 · 0 comments
Open

BuildingAHU falsely created by json input #777

PGorzalka opened this issue Nov 6, 2024 · 0 comments

Comments

@PGorzalka
Copy link
Contributor

What is the problem?

  • teaserjson.input calls bldg.central_ahu = BuildingAHU(parent=bldg) even though bldg_in["central_ahu"] throws a KeyError that is catched by the try clause, thus creating a BuildingAHU object for a building that should have bldg.central_ahu = None (because upon export, there was no such object)

Why do we want to solve it?

  • When exporting to Modelica, the model fails simulating in OpenModelica.

How do we want to solve it?

  • Let the try clause catch the error before BuildingAHU is called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant