errors in stochastic schedules

This commit is contained in:
Pilar 2022-06-09 11:09:03 -04:00
parent 9fa55f2ca3
commit 46a631c344
2 changed files with 2 additions and 6 deletions

View File

@ -28,9 +28,9 @@ class StochasticSchedulesImporter:
Returns the city with the usage parameters assigned to the buildings
:return:
"""
_daily_schedules = pd.read_excel(self._xls, nrows=261, usecols="A:Y")
_daily_schedules = pd.read_excel(self._xls, nrows=365, usecols="A:Y")
year = []
for day in range(1, 262):
for day in range(1, 366):
values = _daily_schedules.iloc[day-1][1:].to_numpy()
year.extend(values)
schedule = Schedule()

View File

@ -32,10 +32,6 @@ try:
ConstructionFactory('nrel', city).enrich()
print('enrich constructions... done')
UsageFactory('comnet', city).enrich()
for building in city.buildings:
for internal_zone in building.internal_zones:
for usage_zone in internal_zone.usage_zones:
print(usage_zone.occupancy.occupancy_schedules)
print('enrich usage... done')
in_path = (Path(__file__).parent.parent / 'data' / 'occupancyschedules_2019_point4.xlsx')
CustomizedImportsFactory(ssi, city, in_path).enrich()