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 17, 2022
1 parent 9d36701 commit 727f654
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 @@ -71,7 +71,8 @@ def create_grid(output_folder=None):
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"]
powersimdata_outputs[name] = full_tables[name][col_names]

Expand Down

0 comments on commit 727f654

Please sign in to comment.