Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Traceback (most recent call last):
  File "<pyshell#18>", line 1, in <module>
    result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet')
  File "/usr/local/lib/python2.7/dist-packages/waipy/cwt/wavetest.py", line 75, in cwt
    ondaleta,wave,period,scale,coi,f = lib_wavelet.wavelet(data,dt,mother,param)#,pad,dj,s0,j1,mother,param)
  File "/usr/local/lib/python2.7/dist-packages/waipy/cwt/lib_wavelet.py", line 132, in wavelet
    k = np.concatenate((k_pos,k_neg), axis =1)  			# vector of symmetric
AxisError: axis 1 is out of bounds for array of dimension 1


What I have tried:

Python
result = cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet')
Posted
Updated 20-Nov-18 3:51am
v2

1 solution

You only have 1 item in your array, as noted in the error message. Array elements are addressed starting at zero.
 
Share this answer
 
Comments
CPallini 20-Nov-18 11:03am    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900