bug in scipy.signal.wavelets.morlet()?
Hi All! I came across what seems to me like an obvious bug in scipy.signal.wavelets.morlet(): If complete==True (the default setting) the output does not correspond to the formula in the docstring. I believe the bug would be fixed if the if statement were changed from: if complete: x -= exp(-0.5*(w**2)) to if complete: output -= exp(-0.5*(w**2)) Best, Christoph Weidemann
Thanks, Christoph. This is now fixed in SVN. Do you have a simple test case we can use to ensure this doesn't happen again? Regards Stéfan On Wed, Mar 19, 2008 at 2:50 PM, Christoph T. Weidemann <ctw@cogsci.info> wrote:
Hi All!
I came across what seems to me like an obvious bug in scipy.signal.wavelets.morlet():
If complete==True (the default setting) the output does not correspond to the formula in the docstring. I believe the bug would be fixed if the if statement were changed from:
if complete: x -= exp(-0.5*(w**2))
to
if complete: output -= exp(-0.5*(w**2))
Best, Christoph Weidemann
participants (2)
-
Christoph T. Weidemann
-
Stéfan van der Walt