Compare commits

..

No commits in common. "main" and "0.1.0.4" have entirely different histories.

2 changed files with 20 additions and 22 deletions

View File

@ -40,8 +40,7 @@ class Co2Emission:
""" """
results = {} results = {}
for energy_system in self._building.energy_systems: for energy_system in self._building.energy_systems:
for generation_system in energy_system.generation_systems: fuel_type = energy_system.generation_system.generic_generation_system.fuel_type
fuel_type = generation_system.fuel_type
emissions_factor = self._emissions_factor[fuel_type] emissions_factor = self._emissions_factor[fuel_type]
for demand_type in energy_system.demand_types: for demand_type in energy_system.demand_types:
if demand_type == cte.ELECTRICITY: if demand_type == cte.ELECTRICITY:
@ -60,7 +59,6 @@ class Co2Emission:
values = [v * emissions_factor for v in self._building.domestic_hot_water_consumption[time_period]] values = [v * emissions_factor for v in self._building.domestic_hot_water_consumption[time_period]]
results_by_time_period[time_period] = values results_by_time_period[time_period] = values
results[demand_type] = results_by_time_period results[demand_type] = results_by_time_period
emission_factor = self._emissions_factor[cte.ELECTRICITY] emission_factor = self._emissions_factor[cte.ELECTRICITY]
results_by_time_period = {} results_by_time_period = {}
for time_period in self._building.lighting_electrical_demand: for time_period in self._building.lighting_electrical_demand:

View File

@ -5,4 +5,4 @@ Copyright © 2023 Project Coder Guille Gutierrez guillermo.gutierrezmorote@conco
Code contributor Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca Code contributor Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
Code contributor Oriol Gavalda Torrellas oriol.gavalda@concordia.ca Code contributor Oriol Gavalda Torrellas oriol.gavalda@concordia.ca
""" """
__version__ = '0.1.0.5' __version__ = '0.1.0.4'