From 727f6545760f3cb5574eadc86e540931ac36e7cd Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Wed, 9 Feb 2022 15:37:12 -0800 Subject: [PATCH] fix: avoid duplicate 'interconnect' columns --- prereise/gather/griddata/hifld/orchestration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prereise/gather/griddata/hifld/orchestration.py b/prereise/gather/griddata/hifld/orchestration.py index 74b4bf23d..258f6f7cf 100644 --- a/prereise/gather/griddata/hifld/orchestration.py +++ b/prereise/gather/griddata/hifld/orchestration.py @@ -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]