{"action":"created","issue":{"url":"https://api.github.com/repos/mabelcalim/waipy/issues/7","repository_url":"https://api.github.com/repos/mabelcalim/waipy","labels_url":"https://api.github.com/repos/mabelcalim/waipy/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mabelcalim/waipy/issues/7/comments","events_url":"https://api.github.com/repos/mabelcalim/waipy/issues/7/events","html_url":"https://github.com/mabelcalim/waipy/issues/7","id":169556289,"number":7,"title":"Error ","user":{"login":"imadhusudan","id":10918484,"avatar_url":"https://avatars.githubusercontent.com/u/10918484?v=3","gravatar_id":"","url":"https://api.github.com/users/imadhusudan","html_url":"https://github.com/imadhusudan","followers_url":"https://api.github.com/users/imadhusudan/followers","following_url":"https://api.github.com/users/imadhusudan/following{/other_user}","gists_url":"https://api.github.com/users/imadhusudan/gists{/gist_id}","starred_url":"https://api.github.com/users/imadhusudan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imadhusudan/subscriptions","organizations_url":"https://api.github.com/users/imadhusudan/orgs","repos_url":"https://api.github.com/users/imadhusudan/repos","events_url":"https://api.github.com/users/imadhusudan/events{/privacy}","received_events_url":"https://api.github.com/users/imadhusudan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-05T08:34:37Z","updated_at":"2016-10-25T18:22:32Z","closed_at":null,"body":"Hi, I installed waipy from github, exactly the way you have described. (NO PIP)\r\nSo I execute \r\nresult = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet') \r\nand i get following error \r\n\r\nIndexError                                Traceback (most recent call last)\r\n<ipython-input-26-34fb4ffa7050> in <module>()\r\n----> 1 result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, alpha, 6, mother='Morlet')\r\n\r\n/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)\r\n     73         # Wavelet transform\r\n     74         import lib_wavelet\r\n---> 75         ondaleta,wave,period,scale,coi,f = lib_wavelet.wavelet(data,dt,mother,param)#,pad,dj,s0,j1,mother,param)\r\n     76         power = np.abs(wave*wave)\r\n     77         # Significance levels: (variance=1 for the normalized SST)\r\n\r\n/Users/nicolasf/anaconda/envs/python2/lib/python2.7/site-packages/waipy/cwt/lib_wavelet.pyc in wavelet(Y, dt, mother, param)\r\n    130                 k_neg = [e * (-1) for e in k_neg]                       # negative part\r\n    131                 k_neg = k_neg[1:-1]                                     # delete the first value of k_neg = last value of k_pos\r\n--> 132         k = np.concatenate((k_pos,k_neg), axis =1)                      # vector of symmetric\r\n    133         # compute fft of the padded time series\r\n    134         f = np.fft.fft(x,n)\r\n\r\nIndexError: axis 1 out of bounds [0, 1)"},"comment":{"url":"https://api.github.com/repos/mabelcalim/waipy/issues/comments/256123216","html_url":"https://github.com/mabelcalim/waipy/issues/7#issuecomment-256123216","issue_url":"https://api.github.com/repos/mabelcalim/waipy/issues/7","id":256123216,"user":{"login":"mabelcalim","id":6516493,"avatar_url":"https://avatars.githubusercontent.com/u/6516493?v=3","gravatar_id":"","url":"https://api.github.com/users/mabelcalim","html_url":"https://github.com/mabelcalim","followers_url":"https://api.github.com/users/mabelcalim/followers","following_url":"https://api.github.com/users/mabelcalim/following{/other_user}","gists_url":"https://api.github.com/users/mabelcalim/gists{/gist_id}","starred_url":"https://api.github.com/users/mabelcalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabelcalim/subscriptions","organizations_url":"https://api.github.com/users/mabelcalim/orgs","repos_url":"https://api.github.com/users/mabelcalim/repos","events_url":"https://api.github.com/users/mabelcalim/events{/privacy}","received_events_url":"https://api.github.com/users/mabelcalim/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:22:32Z","updated_at":"2016-10-25T18:22:32Z","body":"Hi Gavin,\n\nCan you explain better which axis did you modified?\nIn wavetest.py you do not suppose to change the axis :\n\n\nglobal_ws = variance * (np.sum(power.conj().transpose(), axis=0) / n)\nthis means that the conjugate power is transpose in the first dimension   =\naxis =0\n\njoint_wavelet = np.concatenate((np.fft.ifft(ondaleta)[np.ceil( n / 2.):],\nnp.fft.ifft(ondaleta)[np.ceil(n / 2.):][::-1]), axis=1)\nthis means that I need to concatenate the significant values in the second\ndimension = axis =1\n\nRegards\nMabel\n\n------------------------------------------------------------------------\n\n*Mabel Calim Costa*\nInstituto Nacional de Pesquisas Espaciais - INPE\nCachoeira Paulista -SP\n+55 (12) 3186 - 8566 (ramal *8566*)\n-------------------------------------------------------------------------\n\n\nOn 22 October 2016 at 00:15, gavin971 <notifications@github.com> wrote:\n\n> *I modify the axis=1 with axis ( lib_wavelet.py and wavetest.py), just get\n> the following warning. Besides, I can run the\n> example(https://wavelet-analysis.readthedocs.io/en/latest/cookbook.html\n> <https://wavelet-analysis.readthedocs.io/en/latest/cookbook.html>)\n> successfully, and plot the data nino3. (the graph attachment* *https://www.dropbox.com/s/o861f36bxi67306/figure_1.png?dl=0\n> <https://www.dropbox.com/s/o861f36bxi67306/figure_1.png?dl=0>* )\n>\n> /Users/fuzhp/anaconda/lib/python2.7/site-packages/waipy-\n> 0.0.9.0-py2.7.egg/waipy/cwt/wavetest.py:88: VisibleDeprecationWarning:\n> using a non-integer number instead of an integer will result in an error in\n> the future\n> /Users/fuzhp/anaconda/lib/python2.7/site-packages/waipy-\n> 0.0.9.0-py2.7.egg/waipy/cwt/wavetest.py:89: VisibleDeprecationWarning:\n> using a non-integer number instead of an integer will result in an error in\n> the future\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/mabelcalim/waipy/issues/7#issuecomment-255501410>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AGNvDXxCX_qBbl0aUGAli3UFKzA4zaZvks5q2XGkgaJpZM4Jdd_Q>\n> .\n>\n"}}
{"actor":{"display_login":"mabelcalim"}}