From 825572ce29500ff32079a2804b0bb0bb26787ba5 Mon Sep 17 00:00:00 2001 From: Pilar Date: Fri, 28 Oct 2022 18:01:06 -0400 Subject: [PATCH] redefined the way long schedules are assigned to energy+ --- imports/customized_imports/stochastic_schedules_importer.py | 4 ++-- scripts/ep_workflow.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imports/customized_imports/stochastic_schedules_importer.py b/imports/customized_imports/stochastic_schedules_importer.py index 1e99e63e..cef1db89 100644 --- a/imports/customized_imports/stochastic_schedules_importer.py +++ b/imports/customized_imports/stochastic_schedules_importer.py @@ -43,5 +43,5 @@ class StochasticSchedulesImporter: for building in self._buildings: for internal_zone in building.internal_zones: for thermal_zone in internal_zone.thermal_zones: - occupancy = thermal_zone.occupancy - occupancy.occupancy_schedules = [schedule] + _occupancy = thermal_zone.occupancy + _occupancy.occupancy_schedules = [schedule] diff --git a/scripts/ep_workflow.py b/scripts/ep_workflow.py index 5d13f0bc..41996aac 100644 --- a/scripts/ep_workflow.py +++ b/scripts/ep_workflow.py @@ -33,8 +33,8 @@ try: print('enrich constructions... done') UsageFactory('comnet', city).enrich() print('enrich usage... done') - in_path = (Path(__file__).parent.parent / 'data' / 'occupancyschedules_2019_point4.xlsx') - CustomizedImportsFactory(ssi, city, in_path).enrich() +# in_path = (Path(__file__).parent.parent / 'data' / 'occupancyschedules_2019_point4.xlsx') +# CustomizedImportsFactory(ssi, city, in_path).enrich() print('enrich stochastic schedules for occupancy... done') area = 0