Skip to content

Commit

Permalink
Merge pull request #776 from BIM2SIM/775-error-in-teaser-result-dataf…
Browse files Browse the repository at this point in the history
…rame-creation

fix handling of result dataframes for AggregatedThermalZone
  • Loading branch information
DaJansenGit authored Jan 8, 2025
2 parents df22a91 + ba0c3c0 commit 9b947f3
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,9 @@ def map_zonal_results(bim2sim_teaser_mapping_selected, elements: dict):
"""
bim2sim_teaser_mapping = {}
space_guid_list = []
agg_tzs = filter_elements(elements, 'AggregatedThermalZone')
if agg_tzs:
for agg_tz in agg_tzs:
space_guid_list.append(agg_tz.guid)
else:
tzs = filter_elements(elements, 'ThermalZone')
for tz in tzs:
space_guid_list.append(tz.guid)
thermal_zones = filter_elements(elements, 'ThermalZone')
for tz in thermal_zones:
space_guid_list.append(tz.guid)
for key, value in bim2sim_teaser_mapping_selected.items():
# add entry for each room/zone
if "numZones" in key:
Expand Down

0 comments on commit 9b947f3

Please sign in to comment.