diff --git a/hub/catalog_factories/usage/comnet_catalog.py b/hub/catalog_factories/usage/comnet_catalog.py index e78fed67..64a40f6d 100644 --- a/hub/catalog_factories/usage/comnet_catalog.py +++ b/hub/catalog_factories/usage/comnet_catalog.py @@ -190,14 +190,14 @@ class ComnetCatalog(Catalog): schedules_key = {} for j in range(0, number_usage_types-1): usage_parameters = _extracted_data.iloc[j] - usage_type = usage_parameters[0] - lighting_data[usage_type] = usage_parameters[1:6].values.tolist() - plug_loads_data[usage_type] = usage_parameters[8:13].values.tolist() - occupancy_data[usage_type] = usage_parameters[17:20].values.tolist() - ventilation_rate[usage_type] = usage_parameters[20:21].item() - water_heating[usage_type] = usage_parameters[23:24].item() - process_data[usage_type] = usage_parameters[24:26].values.tolist() - schedules_key[usage_type] = usage_parameters[27:28].item() + usage_type = usage_parameters.iloc[0] + lighting_data[usage_type] = usage_parameters.iloc[1:6].values.tolist() + plug_loads_data[usage_type] = usage_parameters.iloc[8:13].values.tolist() + occupancy_data[usage_type] = usage_parameters.iloc[17:20].values.tolist() + ventilation_rate[usage_type] = usage_parameters.iloc[20:21].item() + water_heating[usage_type] = usage_parameters.iloc[23:24].item() + process_data[usage_type] = usage_parameters.iloc[24:26].values.tolist() + schedules_key[usage_type] = usage_parameters.iloc[27:28].item() return {'lighting': lighting_data, 'plug loads': plug_loads_data,