[SciPy-user] signaltools missing imports

Albert Strasheim fullung at gmail.com
Wed Feb 22 15:34:04 CST 2006

Hello all

It seems signaltools.py is missing some imports in SciPy 0.4.6. The
following code:

from scipy.signal import triang
print triang(3)

causes the following traceback:

Traceback (most recent call last):
  File "frags.py", line 10, in ?
    print triang(3)
  File "C:\Python24\Lib\site-packages\scipy\signal\signaltools.py",
line 579, in triang
    w = numpy.r_[w, w[-2::-1]]
NameError: global name 'numpy' is not defined

At the top of signaltools.py we have:

import numpy as Numeric

This seems incorrect.

I've filed this issue in Trac:




More information about the SciPy-user mailing list