Repository navigation
feat(nowcast): split electricity bills into generation and a delivery margin by buyer - #1221
Open
WesIngwersen wants to merge 2 commits into
Open
WesIngwersen wants to merge 2 commits into
WesIngwersen wants to merge 2 commits into
Conversation
… margin by buyer (#902) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the split in #902, which stays open as the plan. Stacked on #1220.
Adds
bedrock/transform/eeio/electricity_delivery.py, which splits each buyer's electricity bill into generation and a delivery margin. It also changesgeneration_pricefrom #1220 to a three-year trailing average. Nothing in the model reads the split yet, so no output changes. The older G/T/D allocator is untouched, because released configs use it. #1217 wires this in.The method
floored.42ELEC. Buyer kWh are on EIA's delivered basis, no longer scaled to eGRID.Why three years, trailing
Manufacturing industries priced below each candidate, on #1219's prices before bills are applied:
Centered needs 2025 revenue, which the source doesn't have yet. Trailing also matches why the spike doesn't reach these buyers at once: retail rates lag wholesale.
Results on the real bills, MUT
v1.0.0_b17908f42ELECsales)By class, 2024:
Inside manufacturing, 2024: margins run from 0.89 ¢/kWh (wet corn milling) and 1.59 (steel) to 8.38 (beverages) and 11.54 (asphalt paving), with a median of 6.27.
Estimated effect on
N, 2024An estimate rather than a built model: generation emissions follow generation dollars, and losses and the non-fuel chain follow delivery dollars, applied through today's
L. #1217 replaces it.331200steel products +22%,331410nonferrous smelting +22%,S00102-7%Nof42ELECNof generationLimits
Checks
Unit tests are synthetic and need no data.
black,ruffandmypyare clean on these files. The real-data results above came from a local run. The suite is left to CI.🤖 Generated with Claude Code