Skip to content

BUG: fix indexing in WaveletPacketND.reconstruct for data_size - #857

Open
whyvineet wants to merge 1 commit into
PyWavelets:mainfrom
whyvineet:fix/waveletpacketnd-reconstruct-indexing
Open

BUG: fix indexing in WaveletPacketND.reconstruct for data_size#857
whyvineet wants to merge 1 commit into
PyWavelets:mainfrom
whyvineet:fix/waveletpacketnd-reconstruct-indexing

Conversation

@whyvineet

Copy link
Copy Markdown

When using WaveletPacketND.reconstruct() to reconstruct the array, it may be necessary to trim it so that it matches the original shape. In order to prevent an IndexError, tuple-based slicing should be used rather than list-based indexing.

Fixes #856

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.

WaveletPacketND.reconstruct() raises IndexError for non-power-of-two shapes

1 participant