Skip to content
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

Waipy #6

Open
brunofisico opened this issue Jul 30, 2016 · 6 comments
Open

Waipy #6

brunofisico opened this issue Jul 30, 2016 · 6 comments

Comments

@brunofisico
Copy link

Hello everyone

I'm having trouble installing the waipy package and running examples can not configure them. what to do?



IndexError Traceback (most recent call last)
in ()
----> 1 result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, 0.72, 6, mother='Morlet',name='x')

/home/bruno/anaconda2/lib/python2.7/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)

/home/bruno/anaconda2/lib/python2.7/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)

@mabelcalim
Copy link
Owner

Hi Bruno

Yesterday I converted waipy to python3.6. Now it's waipy0.0.1.0!
Try to check the example_python3.6 on my github (https://github.com/mabelcalim/waipy)

I hardly recommend to install from github:
in your path:
git clone https://github.com/mabelcalim/waipy.git
cd waipy
python3 setup.py install

And try to use the example ;)
If you have some problem to install, please let me know!

Thanks for choosing waipy!
Best regards
Mabel

@iblignic
Copy link

Hi,

I'm having trouble installing the update from Github. I don't know how to follow the readme on the git clone link. I've downloaded the ZIP file using the green "Clone or download" button. What's the next step? (I apologise if my questions are very basic.)

First of all , where should I type in this code?
--> cd PATH_TO_SAVE_WAIPY_IN_YOUR_HOME
--> git clone https://github.com/mabelcalim/waipy.git
--> cd waipy/

I'm using windows. So if I've unpacked the ZIP file in "my documents" for example, should the first line of the code read as follows?:
cd C:\Users\james\Documents

Should the "git clone https://github.com/mabelcalim/waipy.git" line be typed in as a command?

What are the next steps?

If anyone has successfully installed this, I'd really appreciate your help.

Regards,

James

@mabelcalim
Copy link
Owner

mabelcalim commented Feb 13, 2019 via email

@iblignic
Copy link

iblignic commented Feb 14, 2019 via email

@mabelcalim
Copy link
Owner

mabelcalim commented Feb 14, 2019 via email

@iblignic
Copy link

Hi Mabel,

Thanks again for your answer.

I followed your steps and I think that I now have waipy installed.
I changed the directory to where I have your unpacked zip files saved and entered "setup.py install" to the command prompt.
The terminal wrote some lines and in the end printed "Finished processing dependencies for waipy==0.0.1.40"
... so I think it worked.

When I try to use waipy however, I get the following error message
"TabError: inconsistent use of tabs and spaces in indentation"

Is this an error in the waipy code or did I just not install it properly?

Thanks again for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants