redefined the way long schedules are assigned to energy+

This commit is contained in:
Pilar 2022-10-28 18:01:06 -04:00
parent 46a631c344
commit 825572ce29
2 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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