refactor(eeio): remove use_cornerstone_2026_model_schema gating#291
Draft
briantobin-99 wants to merge 1 commit intobtobin__cleanup-ghg-methodfrom
Draft
refactor(eeio): remove use_cornerstone_2026_model_schema gating#291briantobin-99 wants to merge 1 commit intobtobin__cleanup-ghg-methodfrom
briantobin-99 wants to merge 1 commit intobtobin__cleanup-ghg-methodfrom
Conversation
Keep only Cornerstone branches in ~10 files. Simplify MECS mapping selectors in 4 CO2 allocators, get_allocation_sectors(), waste_utils, bea.py use table loader, and 6 functions in eeio/derived.py (now thin wrappers delegating to derived_cornerstone.py). Delete CEDA v7 dead code paths: derive_B_usa_via_vnorm, derive_v5_U_usa, derive_v5_detail_Ytot_usa_matrix_set.
Contributor
Author
Stack
|
This was referenced Mar 20, 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.
cc:
Closes:
What changed? Why?
Keep only Cornerstone branches in ~10 files. Simplify MECS mapping selectors in 4 CO2 allocators (
industrial_coal.py,industrial_natural_gas.py,non_energy_fuels_natural_gas.py,non_energy_fuels_petrol.py),get_allocation_sectors()inutils.py,waste_562000_allocation_series_ceda_allocator_to_cornerstone_schema()inwaste_utils.py, andload_bea_use_table()inextract/allocation/bea.py. Simplify 6 functions ineeio/derived.pyto thin wrappers delegating toderived_cornerstone.py. Delete CEDA v7 dead code:derive_B_usa_via_vnorm,derive_v5_U_usa,derive_v5_detail_Ytot_usa_matrix_set.Stack: 2/5 — depends on #1 (GHG method cleanup).
Testing
Updated
test_bea_use_table_schema.pyfor Cornerstone-only BEA loader. Existing allocation and EEIO tests pass.Made with Cursor