Repository navigation
feat(nowcast): annual electricity price by manufacturing industry from MECS and EIA - #1219
Open
WesIngwersen wants to merge 2 commits into
Open
WesIngwersen wants to merge 2 commits into
WesIngwersen wants to merge 2 commits into
Conversation
…m MECS and EIA (#901) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 6, 2026
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.
Closes #901. Part of the plan in #902.
Adds
bedrock/transform/eeio/electricity_price.py: the annual electricity price per kWh delivered, by BEA 2017 detail manufacturing industry, for 2017-2024. Nothing reads it yet, so no model output changes. #902 will divide bills by it.How the price is built
Buyers outside manufacturing take their EIA class price (
class_price). Prices are per kWh delivered, as published. The allocator's class kWh are scaled to eGRID generation, so #902 has to convert.Why not MECS's
31-33row for the level. In MECS 2022 the three-digit rows sum to $2.1bn less than that row. Scaling to it moved every 2022 price about 0.16 ¢/kWh above its published value.Results on the real tables
The two movers are
331313alumina and primary aluminum (+36%) and331314secondary aluminum (-37%). They are left unsmoothed, because smelter closures make a real change plausible.Limits
337) has no published total, so it uses the local-utility price.331314: this BEA code is priced here but folds into a Cornerstone commodity. Split electricity bills into generation and a buyer-specific delivery margin (42ELEC) #902 applies that mapping.Checks
Unit tests are synthetic and need no data.
black,ruffandmypyare clean on the new files. The real-table results above came from a local run. The suite is left to CI.🤖 Generated with Claude Code