diff --git a/catalog_factories/usage/comnet_catalog.py b/catalog_factories/usage/comnet_catalog.py index 29b6b2c1..e2fb294d 100644 --- a/catalog_factories/usage/comnet_catalog.py +++ b/catalog_factories/usage/comnet_catalog.py @@ -66,7 +66,7 @@ class ComnetCatalog(Catalog): self._schedules[schedule_name]['Occupancy']) # get lighting - density = lighting_archetype[4] / pow(cte.METERS_TO_FEET,2) + density = lighting_archetype[4] * pow(cte.METERS_TO_FEET, 2) lighting = Lighting(density, lighting_convective, lighting_radiative, @@ -78,7 +78,7 @@ class ComnetCatalog(Catalog): if density == 'n.a.': density = 0 # convert W/ft2 to W/m2 - density = float(density) / pow(cte.METERS_TO_FEET,2) + density = float(density) * pow(cte.METERS_TO_FEET, 2) appliances = Appliances(density, appliances_convective, appliances_radiative, @@ -154,7 +154,7 @@ class ComnetCatalog(Catalog): _schedule_values[day] = _extracted_data.iloc[start:end, 3:27].to_numpy().tolist()[0] _schedule = [] for day in _schedule_values: - if schedule_data_type == 'temperature': + if schedule_name == 'ClgSetPt' or schedule_name == 'HtgSetPt': # to celsius if 'n.a.' in _schedule_values[day]: _schedule_values[day] = None diff --git a/city_model_structure/building_demand/thermal_zone.py b/city_model_structure/building_demand/thermal_zone.py index eff21366..2d08fbe7 100644 --- a/city_model_structure/building_demand/thermal_zone.py +++ b/city_model_structure/building_demand/thermal_zone.py @@ -244,7 +244,7 @@ class ThermalZone: return None self._usage = '' for usage_zone in self._parent_internal_zone.usage_zones: - self._usage += str(round(usage_zone.percentage*100)) + '-' + usage_zone.usage + '_' + self._usage += str(round(usage_zone.percentage * 100)) + '-' + usage_zone.usage + '_' self._usage = self._usage[:-1] return self._usage