Skip to content

Commit 00fb8d4

Browse files
Update test_cwt_wavelets.py
1 parent 9c2b414 commit 00fb8d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywt/tests/test_cwt_wavelets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def test_cwt_batch(axis, method):
405405
hop_size = 128
406406
batch_axis = 1 - axis
407407
sst1 = np.asarray(sst, dtype=dtype)
408-
sst = np.stack((sst1, ) * n_batch, axis=batch_axis)
408+
sst = np.stack((sst1, ) * np.ceil(n_batch / hop_size).astype(int), axis=batch_axis)
409409
dt = time[1] - time[0]
410410
wavelet = 'cmor1.5-1.0'
411411
scales = np.arange(1, 32)

0 commit comments

Comments
 (0)