I am trying to decompose the given wave by using a db4 wavelet and 5 level decomposition. Here is the code for the same :
coeffs = pywt.wavedec(yourResultA,'db4',level = 5)
However the editor is giving me the following error:
Level value of 5 is too high. Maximum allowed is 0.
I am not understanding the meaning of this error as level 0 does not make any sense. I even tried to find the maximum possible level for db4 wavelet using this code:
w = pywt.Wavelet('db4')
x = pywt.dwt_max_level(len(yourResultA), w)
The value of x here was 15 so,I guess that it can calculate for 15 levels.Where exactly is the error occurring in my code?