Skip to content

Commit 516f097

Browse files
committed
minor: int check replaced by _value_or_list_like_to_tuple
1 parent 4877066 commit 516f097

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pylops/signalprocessing/DWT.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ def __init__(self, dims, axis=-1, wavelet="haar", level=1, dtype="float64"):
102102
raise ModuleNotFoundError(pywt_message)
103103
_checkwavelet(wavelet)
104104

105-
if isinstance(dims, int):
106-
dims = (dims,)
107-
108105
self.dims = _value_or_list_like_to_tuple(dims)
109106
# define padding for length to be power of 2
110107
ndimpow2 = max(2 ** ceil(log(self.dims[axis], 2)), 2 ** level)

0 commit comments

Comments
 (0)