From ff6ed6a31132b1cb62d8ae77a274d6736dd45245 Mon Sep 17 00:00:00 2001 From: p_monsalvete Date: Mon, 31 Jul 2023 16:02:33 -0400 Subject: [PATCH] first working version --- co2_emission/co2_emission.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/co2_emission/co2_emission.py b/co2_emission/co2_emission.py index 95fc381..fd3188c 100644 --- a/co2_emission/co2_emission.py +++ b/co2_emission/co2_emission.py @@ -1,5 +1,5 @@ """ -Co2 emission module +CO2 emission module SPDX - License - Identifier: LGPL - 3.0 - or -later 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: """ - Co2Emission class + Cost class """ 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 for demand_type in energy_system.demand_types: 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: values = [] for value in self._building.heating_consumption[time_period]: