[SciPy-dev] bug in scipy.signal.wavelets.morlet()?

Stéfan van der Walt stefan@sun.ac...
Wed Mar 19 09:17:11 CDT 2008


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


More information about the Scipy-dev mailing list