Remove debug test and add new buildings.gml to the test_data

This commit is contained in:
Guille 2020-11-20 05:53:15 -05:00
parent bb9ecf11c0
commit 9f4dc2680d
2 changed files with 2829 additions and 623 deletions

View File

@ -13,7 +13,6 @@ class DemoOccupancyParameters:
def __init__(self, city, base_path): def __init__(self, city, base_path):
self._city = city self._city = city
self._demo_schedules_path = base_path / 'demo_schedules.xlsx' self._demo_schedules_path = base_path / 'demo_schedules.xlsx'
print('schedules: ', self._demo_schedules_path)
xls = pd.ExcelFile(self._demo_schedules_path) xls = pd.ExcelFile(self._demo_schedules_path)
# todo: review for more than one usage_zones per building # todo: review for more than one usage_zones per building
for building in city.buildings: for building in city.buildings:
@ -25,12 +24,10 @@ class DemoOccupancyParameters:
data = pd.DataFrame() data = pd.DataFrame()
columns_names = [] columns_names = []
name = '' name = ''
data_type = ''
for i in range(0, 3): for i in range(0, 3):
row = occupancy.iloc[3*index + i] row = occupancy.iloc[3*index + i]
if i == 0: if i == 0:
name = row[0] name = row[0]
data_type = row[1]
columns_names.append(row[2]) columns_names.append(row[2])
data1 = row[3:] data1 = row[3:]
data = pd.concat([data, data1], axis=1) data = pd.concat([data, data1], axis=1)

File diff suppressed because it is too large Load Diff