-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #7
Comments
Traceback (most recent call last): I did as the suggestion, but it still did't work and got the wrong info! what should I do ? |
I modify the "axis=1" with "axis=0" ( lib_wavelet.py and wavetest.py), just get the following warning. Besides, I can run the example(https://wavelet-analysis.readthedocs.io/en/latest/cookbook.html) successfully, and plot the data nino3. (the graph attachment https://www.dropbox.com/s/o861f36bxi67306/figure_1.png?dl=0 ) /Users/fuzhp/anaconda/lib/python2.7/site-packages/waipy-0.0.9.0-py2.7.egg/waipy/cwt/wavetest.py:88: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future |
Hi Gavin Did you try the example1? open a terminal:
... mother='Morlet',name='y')
...
... z, result, result1)
I didn't have time to fix all the examples in github. Please, check if the example n.1 it's working on your machine. regards Mabel Calim Costa +55 (12) 3186 - 8566 (ramal 8566)On 21 October 2016 at 13:12, gavin971 [email protected] wrote:
|
Hi Gavin, Can you explain better which axis did you modified? global_ws = variance * (np.sum(power.conj().transpose(), axis=0) / n) joint_wavelet = np.concatenate((np.fft.ifft(ondaleta)[np.ceil( n / 2.):], Regards Mabel Calim Costa +55 (12) 3186 - 8566 (ramal 8566)On 22 October 2016 at 00:15, gavin971 [email protected] wrote:
|
Hi! I hardly recommend to install from github: And try to use the example ;) Thanks for choosing waipy! |
Hi,am running this code: AxisError Traceback (most recent call last) /home/okama/anaconda2/lib/python2.7/site-packages/waipy/cwt/wavetest.pyc in cwt(data, dt, pad, dj, s0, j1, lag1, param, mother) /home/okama/anaconda2/lib/python2.7/site-packages/waipy/cwt/lib_wavelet.pyc in wavelet(Y, dt, mother, param) AxisError: axis 1 is out of bounds for array of dimension 1 Kindly help to solve it |
Hi, I installed waipy from github, exactly the way you have described. (NO PIP)
So I execute
result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet')
and i get following error
IndexError Traceback (most recent call last)
in ()
----> 1 result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet')
/Users/nicolasf/anaconda/envs/python2/lib/python2.7/site-packages/waipy/cwt/wavetest.pyc in cwt(data, dt, pad, dj, s0, j1, lag1, param, mother)
73 # Wavelet transform
74 import lib_wavelet
---> 75 ondaleta,wave,period,scale,coi,f = lib_wavelet.wavelet(data,dt,mother,param)#,pad,dj,s0,j1,mother,param)
76 power = np.abs(wave*wave)
77 # Significance levels: (variance=1 for the normalized SST)
/Users/nicolasf/anaconda/envs/python2/lib/python2.7/site-packages/waipy/cwt/lib_wavelet.pyc in wavelet(Y, dt, mother, param)
130 k_neg = [e * (-1) for e in k_neg] # negative part
131 k_neg = k_neg[1:-1] # delete the first value of k_neg = last value of k_pos
--> 132 k = np.concatenate((k_pos,k_neg), axis =1) # vector of symmetric
133 # compute fft of the padded time series
134 f = np.fft.fft(x,n)
IndexError: axis 1 out of bounds [0, 1)
The text was updated successfully, but these errors were encountered: