Repository navigation
BUG: Reject invalid coefficient selectors in downcoef and upcoef - #913
Open
AmanBoronbaev wants to merge 1 commit into
Open
AmanBoronbaev wants to merge 1 commit into
AmanBoronbaev wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
downcoefandupcoefaccept'a'for approximation coefficients and'd'for detail coefficients. Checking membership in the string'ad'also accepts''and'ad'. Both silently select the detail branch, so an invalid selector can yield plausible numerical output.Check for membership in the two allowed values and extend the existing error tests to cover both substrings. Before the fix, all four combinations of function and invalid selector produced the same array as
'd'. The fullpywt/testssuite passed after the fix (1,052 passed, 2 skipped).AI assistance: OpenAI Codex prepared the implementation and regression tests and ran the test suite.