Skip to content

reverse logic for DropValue filters#232

Merged
tennlee merged 2 commits intoACCESS-Community-Hub:developfrom
edoyango:reverse-filter-logic
Mar 6, 2026
Merged

reverse logic for DropValue filters#232
tennlee merged 2 commits intoACCESS-Community-Hub:developfrom
edoyango:reverse-filter-logic

Conversation

@edoyango
Copy link
Collaborator

@edoyango edoyango commented Jan 8, 2026

This aligns the logic with the doc strings and resolves #231. Now a PipelineFilterException is raised when the number of values in the input sample is equal to or greater than the supplied percentage threshold. Before, the exception would be raised if the number of values is strictly less than the supplied threshold.

This aligns the logic with the doc strings. Now a PipelineFilterException
is raised when the number of values in the input is equal to or greater
than the supplied percentage threshold. Before, the exception would be
raised if the number of values is strictly less than the supplied
threshold.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 20800831494

Details

  • 25 of 25 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 64.983%

Totals Coverage Status
Change from base Build 20305027296: 0.0%
Covered Lines: 10480
Relevant Lines: 15767

💛 - Coveralls

@nikeethr
Copy link
Collaborator

The change itself seems fine, the difficulty I'm having is the flag (bool) according to docstring and whether True => exception or False => exception, and that's more my lack of understanding probably.

@edoyango edoyango mentioned this pull request Feb 17, 2026
@tennlee tennlee merged commit 1738cdc into ACCESS-Community-Hub:develop Mar 6, 2026
6 checks passed
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.

Directionality of filter test in packages/pipeline/src/pyearthtools/pipeline/operations/dask/filters.py

4 participants