Skip to content

refactor(eeio): remove waste_disagg and use_E_data_year gating#292

Draft
briantobin-99 wants to merge 1 commit intobtobin__cleanup-schema-gatingfrom
btobin__cleanup-waste-disagg-gating
Draft

refactor(eeio): remove waste_disagg and use_E_data_year gating#292
briantobin-99 wants to merge 1 commit intobtobin__cleanup-schema-gatingfrom
btobin__cleanup-waste-disagg-gating

Conversation

@briantobin-99
Copy link
Contributor

cc:
Closes:

What changed? Why?

Simplify derived_cornerstone.py: get_waste_disagg_weights() now always returns WasteDisaggWeights (removed | None return type and the if not cfg.implement_waste_disaggregation: return None guard). Removed if weights is not None: guards from derive_cornerstone_V(), derive_cornerstone_U_with_negatives(), _derive_cornerstone_Ytot_with_trade(), and derive_cornerstone_VA(). Simplified derive_cornerstone_B_non_finetuned() and derive_cornerstone_Aq(). Updated cornerstone_bea_intermediates.py to unconditionally use usa_ghg_data_year. Deleted TestFeatureOffRegression class and test_returns_none_when_disabled from waste disagg integration tests.

Stack: 3/5 — depends on #2 (schema gating removal).

Testing

Simplified test_waste_disagg_pipeline_integration.py to remove disabled-feature regression tests. Existing EEIO tests pass.

Made with Cursor

Simplify derived_cornerstone.py: always compute waste disagg weights
(no None guard), always use E data year for x in B. Remove
get_waste_disagg_weights() returning None when disabled, remove
'weights is not None' guards from V, U, Ytot, VA, Aq functions.
Simplify cornerstone_bea_intermediates.py B calculation. Delete
TestFeatureOffRegression class and test_returns_none_when_disabled
from waste disagg tests.
@briantobin-99
Copy link
Contributor Author

Stack

  1. refactor(allocation): remove GHG if/elif chain and simplify E pipeline #290 — refactor(allocation): remove GHG if/elif chain and simplify E pipeline
  2. refactor(eeio): remove use_cornerstone_2026_model_schema gating #291 — refactor(eeio): remove use_cornerstone_2026_model_schema gating
  3. refactor(eeio): remove waste_disagg and use_E_data_year gating #292 — refactor(eeio): remove waste_disagg and use_E_data_year gating
  4. fix(epa): fix data year validation and remove diagnostics gating #293 — fix(epa): fix data year validation and remove diagnostics gating
  5. refactor(config): remove 14 USAConfig flags and delete obsolete YAMLs #294 — refactor(config): remove 14 USAConfig flags and delete obsolete YAMLs

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.

1 participant