Introduce apply_io_year_adjustments bucket flag (IO year adjustments) - #554
Open
briantobin-99 wants to merge 1 commit into
Open
Conversation
briantobin-99
force-pushed
the
btobin__introduce-io-adjustments-bucket
branch
from
July 30, 2026 18:52
e7d198e to
a45bf8d
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
briantobin-99
force-pushed
the
btobin__introduce-io-adjustments-bucket
branch
from
July 30, 2026 23:56
a45bf8d to
eb6f072
Compare
briantobin-99
marked this pull request as ready for review
July 31, 2026 00:13
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.
cc:
Closes:
What changed? Why?
Introduces the "IO year adjustments" bucket flag:
apply_io_year_adjustments: ON = CEDA's A/q scaling tousa_io_data_yearwith the summary dollar-year rebase always applied, bedrock-derived industry inflation factors, and gross output atusa_ghg_data_yearas B's denominator. OFF = the pre-v0.3 footing (legacy A tail, reference-data inflation factors, 2017 x in B).scale_a_matrix_with_ceda_method_as_fallback,adjust_summary_A_and_q_dollar_year, andupdate_inflation_factors(no surviving config sets them separately).cornerstone_industry_avg_marginsis deliberately not absorbed — margins remains a standalone flag.use_E_data_year_for_x_in_Bsurvives as a compatibility flag for configs that use GHG-year x without the A/inflation adjustments (the electricity configs and USEEIO-parity footing). Readers use the compositecfg.use_ghg_year_x_in_Bproperty (apply_io_year_adjustments or use_E_data_year_for_x_in_B), so those configs' behavior is unchanged.Config migration:
2025_usa_cornerstone_v0_3.yamland the waterfall g2/g3/final configs collapse the four flags intoapply_io_year_adjustments: true; ceda-g1a/g1b carry the explicitfalse. The canonical v0.3 config is now ~6 effective lines.Testing
Unit suite, black, ruff, and mypy green. The ON path is flag-for-flag identical to the v0.3 set; Snapshot integration suite (test_integration run) passes on the stack including this change.