From bf237302817e0a6211b53ec1f8538a2e52bea159 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 12 Mar 2024 16:21:43 +0100 Subject: [PATCH] correct the unit tests --- ...ontreal_generation_system_to_hub_energy_generation_system.py | 2 +- .../energy_systems/montreal_custom_energy_system_parameters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/helpers/data/montreal_generation_system_to_hub_energy_generation_system.py b/hub/helpers/data/montreal_generation_system_to_hub_energy_generation_system.py index 776ccd65..7a42c832 100644 --- a/hub/helpers/data/montreal_generation_system_to_hub_energy_generation_system.py +++ b/hub/helpers/data/montreal_generation_system_to_hub_energy_generation_system.py @@ -20,7 +20,7 @@ class MontrealGenerationSystemToHubEnergyGenerationSystem: 'electricity generator': cte.ELECTRICITY_GENERATOR, 'PV system': cte.PHOTOVOLTAIC, 'heat pump': cte.HEAT_PUMP - } + } @property def dictionary(self) -> dict: diff --git a/hub/imports/energy_systems/montreal_custom_energy_system_parameters.py b/hub/imports/energy_systems/montreal_custom_energy_system_parameters.py index a5ff316b..348df9fe 100644 --- a/hub/imports/energy_systems/montreal_custom_energy_system_parameters.py +++ b/hub/imports/energy_systems/montreal_custom_energy_system_parameters.py @@ -83,7 +83,7 @@ class MontrealCustomEnergySystemParameters: def _create_generation_systems(archetype_system): _generation_systems = [] for archetype_generation_system in archetype_system.generation_systems: - if archetype_generation_system.system_type == 'PV system': + if archetype_generation_system.system_type == 'Photovoltaic': _generation_system = PvGenerationSystem() _type = 'PV system' _generation_system.system_type = Dictionaries().montreal_generation_system_to_hub_energy_generation_system[_type]