i used the code example in notebook :Example 1 Sine and Waipy ,some bug attacked.
while the wavelet analysis in matlab code, there is not a name parameter?
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
IndexError Traceback (most recent call last)
in ()
9
10 data_norm = waipy.normalize(x)
---> 11 result = waipy.cwt(data_norm, 1, 1, 0.125, 2, 4/0.125, 0.72, 6, mother='Morlet',name='x')
12 waipy.wavelet_plot('Sine', z, data_norm, 0.03125, result)
13
C:\Anaconda2\lib\site-packages\waipy-0.0.9.0-py2.7.egg\waipy\cwt\wavetest.pyc in cwt(data, dt, pad, dj, s0, j1, lag1, param, mother, name)
86 # Wavelet transform
87 ondaleta, wave, period, scale, coi, f = lib_wavelet.wavelet(
---> 88 data, dt, param, dj, s0, j1, mother)
89 # wave = np.array(wave)
90 power = (np.abs(wave) ** 2)
C:\Anaconda2\lib\site-packages\waipy-0.0.9.0-py2.7.egg\waipy\cwt\lib_wavelet.pyc in wavelet(Y, dt, param, dj, s0, j1, mother)
170 # delete the first value of k_neg = last value of k_pos
171 k_neg = k_neg[1:-1]
--> 172 k = np.concatenate((k_pos, k_neg), axis=1) # vector of symmetric
173 # compute fft of the padded time series
174 f = np.fft.fft(x, n)
IndexError: axis 1 out of bounds [0, 1)