From 3be3121922f076c25f5475c03685102113bbb38c Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 17 May 2024 05:28:13 +0200 Subject: [PATCH] Add year of construction and function to meb and retofit, results Add total heating area to meb results --- hub_api/persistence/retrofit_results.py | 2 ++ hub_api/workflow/insel_montly_energy_balance.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hub_api/persistence/retrofit_results.py b/hub_api/persistence/retrofit_results.py index 2a3990b..842b786 100644 --- a/hub_api/persistence/retrofit_results.py +++ b/hub_api/persistence/retrofit_results.py @@ -34,6 +34,8 @@ class RetrofitResults(Resource, Config): global_capital_incomes = life_cycle[f'Scenario {scenario_id}']['global_capital_incomes'] global_maintenance_costs = life_cycle[f'Scenario {scenario_id}']['global_maintenance_costs'] building_results['total_heating_area'] = building_info.total_heating_area + building_results['year_of_construction'] = building_info.year_of_construction + building_results['function'] = building_info.function building_results['costs'] = { 'total_capital_costs_skin': life_cycle[f'Scenario {scenario_id}']['total_capital_costs_skin'], 'total_capital_costs_systems': life_cycle[f'Scenario {scenario_id}']['total_capital_costs_systems'], diff --git a/hub_api/workflow/insel_montly_energy_balance.py b/hub_api/workflow/insel_montly_energy_balance.py index 50ffbaf..efe0c6b 100644 --- a/hub_api/workflow/insel_montly_energy_balance.py +++ b/hub_api/workflow/insel_montly_energy_balance.py @@ -111,6 +111,9 @@ class InselMonthlyEnergyBalance(Resource, Config): results = {} for building in self._city.buildings: results[building.name] = { + 'total_heating_area': building.floor_area * building.storeys_above_ground, + 'year_of_construction': building.year_of_construction, + 'function': building.function, 'monthly_heating_demand': building.heating_demand[cte.MONTH], 'yearly_heating_demand': building.heating_demand[cte.YEAR], 'monthly_cooling_demand': building.cooling_demand[cte.MONTH],