From d29161b05e3487926b557331d9b1e0320b367633 Mon Sep 17 00:00:00 2001 From: p_monsalvete Date: Fri, 6 Oct 2023 04:54:20 -0400 Subject: [PATCH] rolled back and error introduced in a previous commit --- hub/city_model_structure/building_demand/thermal_zone.py | 2 +- tests/test_systems_factory.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hub/city_model_structure/building_demand/thermal_zone.py b/hub/city_model_structure/building_demand/thermal_zone.py index 6ea08324..386e8c4b 100644 --- a/hub/city_model_structure/building_demand/thermal_zone.py +++ b/hub/city_model_structure/building_demand/thermal_zone.py @@ -578,7 +578,7 @@ class ThermalZone: for i_type, _ in enumerate(_types_reference): _schedules = [] _schedule_type = _types_reference[i_type][1] - for _, schedule_value in enumerate(_schedule_type): + for i_schedule, schedule_value in enumerate(_schedule_type): schedule = Schedule() schedule.type = schedule_value.type schedule.day_types = schedule_value.day_types diff --git a/tests/test_systems_factory.py b/tests/test_systems_factory.py index 07c9683a..420e4172 100644 --- a/tests/test_systems_factory.py +++ b/tests/test_systems_factory.py @@ -55,6 +55,7 @@ class TestSystemsFactory(TestCase): EnergySystemsFactory('montreal_custom', self._city).enrich() self.assertEqual(17, len(self._city.energy_systems_connection_table)) + self.assertEqual(1, len(self._city.generic_energy_systems)) def test_montreal_custom_system_results(self): """ @@ -126,6 +127,7 @@ class TestSystemsFactory(TestCase): EnergySystemsFactory('north_america', self._city).enrich() self.assertEqual(17, len(self._city.energy_systems_connection_table)) + self.assertEqual(1, len(self._city.generic_energy_systems)) def test_north_america_custom_system_results(self): """