Skip to content

Commit

Permalink
fix: avoid duplicate 'interconnect' columns
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Feb 9, 2022
1 parent f300d1c commit 96a2164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prereise/gather/griddata/hifld/orchestration.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def create_csvs(output_folder):
col_names += ["type", "GenFuelCost", "GenIOB", "GenIOC", "GenIOD"]
if name == "dcline":
col_names += ["from_interconnect", "to_interconnect"]
else:
elif name not in {"sub", "bus2sub"}:
# these tables already have 'interconnect' within their col_names
col_names += ["interconnect"]
outputs[name] = outputs[name][col_names]

Expand Down

0 comments on commit 96a2164

Please sign in to comment.