Skip to content

refactor(config): remove 14 USAConfig flags and delete obsolete YAMLs#294

Draft
briantobin-99 wants to merge 1 commit intobtobin__cleanup-epa-diagnosticsfrom
btobin__cleanup-usa-config
Draft

refactor(config): remove 14 USAConfig flags and delete obsolete YAMLs#294
briantobin-99 wants to merge 1 commit intobtobin__cleanup-epa-diagnosticsfrom
btobin__cleanup-usa-config

Conversation

@briantobin-99
Copy link
Contributor

cc:
Closes:

What changed? Why?

Remove 14 boolean/literal feature flags from USAConfig in bedrock/utils/config/usa_config.py: use_cornerstone_2026_model_schema, load_E_from_flowsa, new_ghg_method, use_E_data_year_for_x_in_B, implement_waste_disaggregation, usa_ghg_methodology, and all 9 individual GHG method flags. Delete 15 obsolete per-flag config YAML files from bedrock/utils/config/configs/. Update remaining YAMLs (v8_ceda_2025_usa.yaml, test_usa_config.yaml, test_usa_config_waste_disagg.yaml, 2025_usa_cornerstone_full_model.yaml) to remove references to deleted flags. Retain scale_a_matrix_with_* flags (3) as experimental.

Stack: 5/5 — final cleanup, depends on #4 (EPA/diagnostics). All code references to deleted flags are already removed in branches 1-4.

Testing

Added test_config_cleanup.py verifying removed flags are gone, retained flags are present, default config loads correctly, and Cornerstone-only behavior of pipeline functions. Updated test_usa_config.py.

Made with Cursor

Remove 14 boolean/literal feature flags from USAConfig that are no
longer needed now that the Cornerstone path is hardcoded. Delete 15
obsolete per-flag config YAML files. Update remaining YAMLs to remove
references to deleted flags. Retain scale_a_matrix_with_* flags (3)
as experimental. Add test_config_cleanup.py to verify removed flags
are gone and retained flags are present.
@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