Skip to content

Update AEO preprocessing to pull from AEO2026#5

Open
wesleyjcole wants to merge 5 commits intomainfrom
AEO_2026
Open

Update AEO preprocessing to pull from AEO2026#5
wesleyjcole wants to merge 5 commits intomainfrom
AEO_2026

Conversation

@wesleyjcole
Copy link
Copy Markdown

Summary

This pull request updates the AEO preprocessing scripts to pull from AEO2026.

Technical details

"Uranium" was renamed as "Nuclear Fuel" in the real dollar outputs, but not for the nominal dollar outputs. Thus both names are still used in the script.

What was the reference scenario is now the "Counterfactual Baseline" scenario.

Additional details

The pull request is closely related to #2, which updates the natural gas elements of the AEO2026. We still pull the natural gas price data here for convenience, but will not be required here once #2 is merged.

Use of AI disclaimer: I used a LLM to update the scenario and parameter names for the API calls.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the aeo_updates preprocessing artifacts to pull data from the EIA AEO2026 API, reflecting updated scenario IDs and renamed series labels.

Changes:

  • Update the AEO scraper notebook default vintage to 2026, adjust series/scenario names (e.g., “Nuclear Fuel”, “Counterfactual Baseline”), and add scenario ID validation.
  • Write scraper outputs to a dedicated outputs/ directory (auto-created).
  • Refresh comparison spreadsheet used for cross-vintage checks.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 5 comments.

File Description
aeo_updates/AEO_scraper.ipynb Switches to AEO2026 defaults and scenario/series names; adds scenario validation and writes outputs into outputs/.
aeo_updates/README.md Notes AEO2026 naming change (“Uranium” → “Nuclear Fuel” for real prices) and documents the outputs/ directory behavior.
aeo_updates/Compare AEO 2025 to AEO 2023.xlsx Updated comparison workbook (binary; contents not reviewable in diff).
Comments suppressed due to low confidence (1)

aeo_updates/AEO_scraper.ipynb:1574

  • This block is now misleading: it refers to outputting coal/uranium only for the "REF" scenario and checks for the old Uranium series name, but the scenario list now uses cb{AEO_year} (Counterfactual Baseline) and the real-price series is "Nuclear Fuel". Either update the comments/conditional to match current behavior or remove the dead commented-out code.
    "        # Only output coal and uranium prices for REF scenario\n",
    "        # if x == 'Energy Prices : Electric Power : Steam Coal' or x == 'Energy Prices : Electric Power : Uranium':\n",
    "        #     if j == f'REF{AEO_year}':\n",
    "        #         df_pivot_filtered.to_csv(filename, index=False)\n",

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread aeo_updates/AEO_scraper.ipynb Outdated
Comment thread aeo_updates/AEO_scraper.ipynb Outdated
Comment thread aeo_updates/README.md
Comment thread aeo_updates/AEO_scraper.ipynb
Comment thread aeo_updates/AEO_scraper.ipynb Outdated
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.

2 participants