first working version
This commit is contained in:
parent
18d829b38a
commit
ff6ed6a311
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
Co2 emission module
|
CO2 emission module
|
||||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2023 Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
Copyright © 2023 Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
"""
|
"""
|
||||||
|
@ -10,7 +10,7 @@ import hub.helpers.constants as cte
|
||||||
|
|
||||||
class Co2Emission:
|
class Co2Emission:
|
||||||
"""
|
"""
|
||||||
Co2Emission class
|
Cost class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, building: Building, emissions_factor=None):
|
def __init__(self, building: Building, emissions_factor=None):
|
||||||
|
@ -41,7 +41,7 @@ class Co2Emission:
|
||||||
fuel_type = energy_system.generation_system.generic_generation_system.fuel_type
|
fuel_type = energy_system.generation_system.generic_generation_system.fuel_type
|
||||||
for demand_type in energy_system.demand_types:
|
for demand_type in energy_system.demand_types:
|
||||||
results_by_time_period = {}
|
results_by_time_period = {}
|
||||||
if str(demand_type).lower() == str(cte.HEATING).lower():
|
if demand_type == cte.HEATING:
|
||||||
for time_period in self._building.heating_consumption:
|
for time_period in self._building.heating_consumption:
|
||||||
values = []
|
values = []
|
||||||
for value in self._building.heating_consumption[time_period]:
|
for value in self._building.heating_consumption[time_period]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user