Skip to content

fix(epa): fix data year validation and remove diagnostics gating#293

Draft
briantobin-99 wants to merge 1 commit intobtobin__cleanup-waste-disagg-gatingfrom
btobin__cleanup-epa-diagnostics
Draft

fix(epa): fix data year validation and remove diagnostics gating#293
briantobin-99 wants to merge 1 commit intobtobin__cleanup-waste-disagg-gatingfrom
btobin__cleanup-epa-diagnostics

Conversation

@briantobin-99
Copy link
Contributor

cc:
Closes:

What changed? Why?

Fix _get_epa_data_year() in extract/allocation/epa.py to accept [2023, 2024] for usa_ghg_data_year (was incorrectly accepting 2022 and rejecting 2024). Remove year == 2022 conditional branches from _get_gcs_epa_dir_for_table(). Clean up calculate_ef_diagnostics.py: remove all use_cornerstone conditional branches, always running Cornerstone-only diagnostics. Update run_method_diff.py and test_fbs.py to use GHG_national_Cornerstone_2023.

Stack: 4/5 — depends on #3 (waste disagg gating removal).

Testing

Existing EPA and diagnostics tests pass. FBS test methods updated.

Made with Cursor

Fix _get_epa_data_year() to accept 2024 and reject 2022 (bug). Remove
2022 conditional branches from _get_gcs_epa_dir_for_table(). Clean up
calculate_ef_diagnostics.py: remove use_cornerstone conditional
branches, always run Cornerstone-only diagnostics. Update
run_method_diff.py and test_fbs.py to use
GHG_national_Cornerstone_2023.
@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