Skip to content

Commit

Permalink
explicitly name chillers & boilers when there is only one (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate authored Feb 13, 2025
1 parent e36624e commit 79a8914
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions urbanopt_des/modelica_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {}
Expand Down Expand Up @@ -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]] = {}
Expand Down

0 comments on commit 79a8914

Please sign in to comment.