Skip to content

[Reports][Emissions] Update emissions.py filtering process#2854

Merged
allisterakun merged 21 commits intodevfrom
remove_use_filter_key
Mar 20, 2026
Merged

[Reports][Emissions] Update emissions.py filtering process#2854
allisterakun merged 21 commits intodevfrom
remove_use_filter_key

Conversation

@allisterakun
Copy link
Collaborator

@allisterakun allisterakun commented Mar 11, 2026

Context

Issue(s) closed by this pull request: closes #2718

This PR removes the use_filter_key_name option in the OM filter.
Also updates the filter processing functions in emissions.py which was still using the deprecated use_filter_key_name option.

There are no affect on the Input or Output of the simulation, only the behind-the-scene process was updated.

Input Changes

Output Changes

  • N/A

Filter

@github-actions
Copy link
Contributor

Current Coverage: 99%

Mypy errors on remove_use_filter_key branch: 1252
Mypy errors on dev branch: 1245
7 more errors on remove_use_filter_key branch

@github-actions
Copy link
Contributor

Current Coverage: 99%

Mypy errors on remove_use_filter_key branch: 1250
Mypy errors on dev branch: 1245
5 more errors on remove_use_filter_key branch

@github-actions
Copy link
Contributor

Current Coverage: 99%

Mypy errors on remove_use_filter_key branch: 1250
Mypy errors on dev branch: 1245
5 more errors on remove_use_filter_key branch

Copy link
Collaborator

@matthew7838 matthew7838 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, outputs look the same. A few minor things:

  1. Remove the "use_filter_key_name" key in OM validate_report_filters.
  2. The changes are not that intuitive, add a bit more details in the PR description for the sake of future bookkeeping and reference.
  3. Be sure to clear the new mypy errors before merging.

Copy link
Collaborator

@ew3361zh ew3361zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent

@github-actions
Copy link
Contributor

Current Coverage: 99%

Mypy errors on remove_use_filter_key branch: 1214
Mypy errors on dev branch: 1210
4 more errors on remove_use_filter_key branch

@allisterakun allisterakun merged commit 63981d3 into dev Mar 20, 2026
1 check passed
@allisterakun allisterakun deleted the remove_use_filter_key branch March 20, 2026 17:29
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.

[Reports][Emissions] Update emissions.py filtering process so it works with new default OM filtering process

3 participants