diff --git a/costs/capital_costs.py b/costs/capital_costs.py index 6add872..654218a 100644 --- a/costs/capital_costs.py +++ b/costs/capital_costs.py @@ -81,7 +81,7 @@ class CapitalCosts(CostBase): capital_cost_other_hvac_ahu = 0 capital_cost_lighting = 0 - for thermal_zone in self._building.thermal_zones: + for thermal_zone in self._building.thermal_zones_from_internal_zones: for thermal_boundary in thermal_zone.thermal_boundaries: if thermal_boundary.type == 'Ground': surface_ground += thermal_boundary.opaque_area diff --git a/costs/cost_base.py b/costs/cost_base.py index 7ffdd26..8d87282 100644 --- a/costs/cost_base.py +++ b/costs/cost_base.py @@ -19,7 +19,7 @@ class CostBase: self._building = building self._configuration = configuration self._total_floor_area = 0 - for thermal_zone in building.thermal_zones: + for thermal_zone in building.thermal_zones_from_internal_zones: self._total_floor_area += thermal_zone.total_floor_area self._archetype = None self._capital_costs_chapter = None diff --git a/costs/total_operational_costs.py b/costs/total_operational_costs.py index 17cd70e..6fca214 100644 --- a/costs/total_operational_costs.py +++ b/costs/total_operational_costs.py @@ -59,8 +59,8 @@ class TotalOperationalCosts(CostBase): domestic_hot_water_electricity = building.domestic_hot_water_consumption[cte.YEAR][0] / 1000 electricity_cooling = building.cooling_consumption[cte.YEAR][0] / 1000 - electricity_lighting = building.lighting_electrical_demand[cte.YEAR]['insel meb'] / 1000 - electricity_plug_loads = building.appliances_electrical_demand[cte.YEAR]['insel meb'] / 1000 + electricity_lighting = building.lighting_electrical_demand[cte.YEAR][0] / 1000 + electricity_plug_loads = building.appliances_electrical_demand[cte.YEAR][0] / 1000 electricity_distribution = 0 total_electricity_consumption = ( electricity_heating + electricity_cooling + electricity_lighting + domestic_hot_water_electricity +