Skip to content

Commit

Permalink
Merge pull request #779 from RWTH-EBC/issue777_buildingahu_input_json
Browse files Browse the repository at this point in the history
Issue777 buildingahu input json
  • Loading branch information
DaJansenGit authored Nov 7, 2024
2 parents 1944dcb + 7604852 commit b83d754
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions teaser/data/input/teaserjson_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,30 @@ def load_teaser_json(path, project):
bldg.window_area = bldg_in["window_area"]

try:
ahu_in = bldg_in["central_ahu"]
bldg.central_ahu = BuildingAHU(parent=bldg)
bldg.central_ahu.heating = bldg_in["central_ahu"]["heating"]
bldg.central_ahu.cooling = bldg_in["central_ahu"]["cooling"]
bldg.central_ahu.dehumidification = bldg_in["central_ahu"][
"dehumidification"
]
bldg.central_ahu.humidification = bldg_in["central_ahu"]["humidification"]
bldg.central_ahu.heat_recovery = bldg_in["central_ahu"]["heat_recovery"]
bldg.central_ahu.by_pass_dehumidification = bldg_in["central_ahu"][
bldg.central_ahu.heating = ahu_in["heating"]
bldg.central_ahu.cooling = ahu_in["cooling"]
bldg.central_ahu.dehumidification = ahu_in["dehumidification"]
bldg.central_ahu.humidification = ahu_in["humidification"]
bldg.central_ahu.heat_recovery = ahu_in["heat_recovery"]
bldg.central_ahu.by_pass_dehumidification = ahu_in[
"by_pass_dehumidification"
]
bldg.central_ahu.efficiency_recovery = bldg_in["central_ahu"][
bldg.central_ahu.efficiency_recovery = ahu_in[
"efficiency_recovery"
]
bldg.central_ahu.efficiency_recovery_false = bldg_in["central_ahu"][
bldg.central_ahu.efficiency_recovery_false = ahu_in[
"efficiency_recovery_false"
]
bldg.central_ahu.min_relative_humidity_profile = bldg_in["central_ahu"][
bldg.central_ahu.min_relative_humidity_profile = ahu_in[
"min_relative_humidity_profile"
]
bldg.central_ahu.max_relative_humidity_profile = bldg_in["central_ahu"][
bldg.central_ahu.max_relative_humidity_profile = ahu_in[
"max_relative_humidity_profile"
]
bldg.central_ahu.v_flow_profile = bldg_in["central_ahu"]["v_flow_profile"]
bldg.central_ahu.temperature_profile = bldg_in["central_ahu"][
bldg.central_ahu.v_flow_profile = ahu_in["v_flow_profile"]
bldg.central_ahu.temperature_profile = ahu_in[
"temperature_profile"
]
except KeyError:
Expand Down

0 comments on commit b83d754

Please sign in to comment.