From 79a89143748348398f23d6c5682cb6f6b138da5e Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Thu, 13 Feb 2025 08:30:29 -0700 Subject: [PATCH] explicitly name chillers & boilers when there is only one (#10) --- urbanopt_des/modelica_results.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/urbanopt_des/modelica_results.py b/urbanopt_des/modelica_results.py index 58a515b..fe1d1ef 100644 --- a/urbanopt_des/modelica_results.py +++ b/urbanopt_des/modelica_results.py @@ -269,8 +269,8 @@ def resample_and_convert_to_df( chiller_data[f"Chiller {var_id + 1}"] = energy cooling_plant_components.append(f"Chiller {var_id + 1}") else: - chiller_data["Chiller"] = [0] * len(time1) - cooling_plant_components.append("Chiller") + chiller_data["Chiller 1"] = [0] * len(time1) + cooling_plant_components.append("Chiller 1") # Other cooling plant data cooling_plant_pumps: dict[str, list[float]] = {} @@ -325,8 +325,8 @@ def resample_and_convert_to_df( boiler_data[f"Boiler {var_id + 1}"] = energy heating_plant_components.append(f"Boiler {var_id + 1}") else: - boiler_data["Boiler"] = [0] * len(time1) - heating_plant_components.append("Boiler") + boiler_data["Boiler 1"] = [0] * len(time1) + heating_plant_components.append("Boiler 1") # Other heating plant data heating_plant_pumps: dict[str, list[float]] = {}