Skip to content

Commit 10ecbd3

Browse files
authored
Merge pull request #857 from whyvineet/fix/waveletpacketnd-reconstruct-indexing
BUG: fix indexing in WaveletPacketND.reconstruct for data_size
2 parents 8a1539a + 9a8f41a commit 10ecbd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywt/_wavelet_packets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def reconstruct(self, update=True):
10151015
if self.has_any_subnode:
10161016
data = super().reconstruct(update)
10171017
if self.data_size is not None and (data.shape != self.data_size):
1018-
data = data[[slice(sz) for sz in self.data_size]]
1018+
data = data[tuple(slice(sz) for sz in self.data_size)]
10191019
if update:
10201020
self.data = data
10211021
return data

0 commit comments

Comments
 (0)