Skip to content

Commit 79acb20

Browse files
Update test_cwt_wavelets.py
1 parent c7da227 commit 79acb20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pywt/tests/test_cwt_wavelets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ def test_cwt_batch(axis, method):
402402
dtype = np.float64
403403
time, sst = pywt.data.nino()
404404
n_batch = 8
405-
hop_size = 128
405+
hop_size = 1
406406
batch_axis = 1 - axis
407407
sst1 = np.asarray(sst, dtype=dtype)
408-
sst = np.stack((sst1, ) * np.ceil(n_batch / hop_size).astype(int), axis=batch_axis)
408+
sst = np.stack((sst1, ) * np.ceil(n_batch / hop_size).astype(int), axis=np.ceil(batch_axis / hop_size).astype(int))
409409
dt = time[1] - time[0]
410410
wavelet = 'cmor1.5-1.0'
411411
scales = np.arange(1, 32)

0 commit comments

Comments
 (0)