[Scipy-tickets] [SciPy] #394: in filter_design.py, firwin calls (standard Python) sum, not numpy.sum
SciPy
scipy-tickets@scipy....
Wed Apr 4 19:38:27 CDT 2007
#394: in filter_design.py, firwin calls (standard Python) sum, not numpy.sum
--------------------------+-------------------------------------------------
Reporter: Brett_McS | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: scipy.signal | Version: 0.5.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
In function firwin of filter_design.py (signal) the return line (1542) is
return h / sum(h,axis=0)
which incorrectly calls the standard Python sum function (an error is
flagged as the standard sum has no axis keyword).
This line should be re-written:
return h / numpy.sum(h,axis=0)
--
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/394>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list