Skip to content

Fix 2024 Interconnection Queue - #16

Open
Yunzhi-Chen wants to merge 5 commits into
mainfrom
yc/ixqueue-bugfix2024
Open

Fix 2024 Interconnection Queue#16
Yunzhi-Chen wants to merge 5 commits into
mainfrom
yc/ixqueue-bugfix2024

Conversation

@Yunzhi-Chen

@Yunzhi-Chen Yunzhi-Chen commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix two bugs in process_interconnection_queues.py that corrupted the county-level queue limits ReEDS consumes as cap_limit — one that silently dropped queues, one that double-counted capacity — and regenerate interconnection_queues_2024.csv accordingly. Also repoints the county mapping, which was broken against current ReEDS main.

Technical details

The two bugs

1 — counties matched on name instead of FIPS . Queues were matched to ReEDS counties on lowercased county name + state, with .str.lower() as the only normalisation. LBNL does not always use the ReEDS spelling — Louisiana is written Acadia Parish where ReEDS has acadia — so unmatched rows were dropped at the merge and their capacity vanished. Louisiana lost essentially its entire queue. Matching on LBNL's FIPS code fixes that, but that code is sometimes stale (Oglala Lakota SD reports 46113, current 46102) or several codes concatenated for multi-county projects (5301353023 = 53013 + 53023) — pure FIPS matching loses 99 rows / 20.2 GW that name matching had caught. So the fix is FIPS first, county name as fallback; the two methods' blind spots are complementary. Unmatched active capacity drops from 4.4% to 1.9%, the remainder being out of ReEDS scope (e.g. MX).

2 — t_2 double-counted the IA Executed queue. The final-year column was built as max(cap_t1, cap_t2) + cap_t1 rather than cap_t1 + cap_t2. The two live on separate rows and max() was being used to broadcast one onto the other, which only works when cap_t2 > cap_t1; otherwise the IA-Executed capacity was counted twice and cap_t2 disappeared (cap_t1=300, cap_t2=100 gave 600 instead of 400). The t_1 column was never affected.

How the fixes were verified

bugfix_comparison

Plot 2024 before bug fix:
image

Plot 2024 after bug fix:
image

Plot 2024 after - before bug fix:
image

LLM usage: Claude Code

Yunzhi-Chen and others added 5 commits August 26, 2026 11:25
ReEDS moved the county_name/state lookup from inputs/county2zone.csv to
inputs/zones/county_state.csv, so the script could no longer be run against a
current ReEDS checkout. Fall back to the new location, and allow the ReEDS
repo to be pointed at with REEDS_PATH instead of only the hardcoded default.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Same input file (lbnl_ix_queue_data_file_thru2024.xlsx) as before; only the
script changed. National 2030 cumulative queue moves 2,050 GW -> 1,976 GW
(-3.6%) and the county count rises as parishes and other counties whose LBNL
spelling did not match ReEDS are no longer silently dropped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Yunzhi-Chen Yunzhi-Chen changed the title Fix 2024 Interconnection Queue- #15 Fix 2024 Interconnection Queue Aug 26, 2026
@Yunzhi-Chen
Yunzhi-Chen requested a review from atpham88 August 26, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant