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

icwt can't produce the same waveform #32

Open
ray306 opened this issue May 22, 2019 · 3 comments
Open

icwt can't produce the same waveform #32

ray306 opened this issue May 22, 2019 · 3 comments

Comments

@ray306
Copy link

ray306 commented May 22, 2019

import pycwt as wavelet
dt=0.002
mother = wavelet.DOG()
coefs, scales, freqs, coi, fft, fftfreqs = wavelet.cwt(wave, dt,
                                                      mother,freqs=np.arange(2,10,0.2))
iwave = wavelet.icwt(coefs, scales, dt, scales[0]-scales[1], mother)

The waveform changed a lot

@jorgman1
Copy link

jorgman1 commented Nov 21, 2019

This is caused by a mistake in line 169 of wavelet.py.
There is already a pull request (#29) for this bug. However, it has not been incorporated yet.

@hellolzc
Copy link

There is an example of reconstruction in the tutorial, and after looking at the output picture it is true that it is not fully reconstructed.
But after fixing the bug following pull request ( #29 ), the reconstructed waveform still has a different amplitude from the original waveform. Can anyone help me?

@beta-yang
Copy link

There is an example of reconstruction in the tutorial, and after looking at the output picture it is true that it is not fully reconstructed. But after fixing the bug following pull request ( #29 ), the reconstructed waveform still has a different amplitude from the original waveform. Can anyone help me?

I also met this problem after fixing the bug following PR( #29 ). Have you solved it? Thanks a lot.

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

4 participants