Skip to content

BUG: match wavedecn_shapes levels to per-axis wavelets - #893

Open
AryanRG wants to merge 1 commit into
PyWavelets:mainfrom
AryanRG:fix-wavedecn-shapes-axis-levels
Open

AryanRG wants to merge 1 commit into
PyWavelets:mainfrom
AryanRG:fix-wavedecn-shapes-axis-levels

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 25, 2026

Copy link
Copy Markdown

For shape (128, 32) and wavelets ('db16', 'db1'), wavedecn_shapes predicts zero decomposition levels and 4,096 coefficients, while wavedecn produces two levels and 5,552 coefficients. This breaks buffer allocation based on the predicted size and produces a false warning for explicit level 2.

Pair each transformed axis length with its filter length when checking the level, as wavedecn already does. Regression tests cover per-axis wavelets, modes and axis order, including coefficient packing and reconstruction.

Validation: regression tests, the full package suite and pre-commit hooks pass. Optional live MATLAB tests are skipped.

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