[Scipy-tickets] [SciPy] #250: remez error

SciPy scipy-tickets at scipy.net
Tue Aug 15 05:10:56 CDT 2006


#250: remez error
--------------------+-------------------------------------------------------
 Reporter:  gaab    |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 I try to use scipy.signal.remez to design a filter, but get an error (see
 below). I have the latest numpy (1.0b2) and scipy (0.5.0) on Linux, python
 2.4.3

 ==========

 gaab at gaablaptop:~$ ipython[[BR]]
 Python 2.4.3 (#2, Apr 27 2006, 14:43:58) [[BR]]
 Type "copyright", "credits" or "license" for more information.

 IPython 0.7.1.fix1 -- An enhanced Interactive Python.[[BR]]
 ?       -> Introduction to IPython's features.[[BR]]
 %magic  -> Information about IPython's 'magic' % functions.[[BR]]
 help    -> Python's own help system.[[BR]]
 object? -> Details about 'object'. ?object also works, ?? prints
 more.[[BR]]

 In [1]: import scipy.signal[[BR]]
 Overwriting info=<function info at 0xb7458df4> from scipy.misc.helpmod
 (was <function info at 0xb7435064> from numpy.lib.utils)[[BR]]
 Overwriting who=<function who at 0xb7458c6c> from scipy.misc.common (was
 <function who at 0xb7430f7c> from numpy.lib.utils)[[BR]]
 Overwriting source=<function source at 0xb7458e2c> from scipy.misc.helpmod
 (was <function source at 0xb743509c> from numpy.lib.utils)[[BR]]
 /usr/lib/python2.4/site-packages/numpy/dft/__init__.py:2: UserWarning: The
 dft subpackage will be removed by 1.0 final -- it is now called fft[[BR]]
   warnings.warn("The dft subpackage will be removed by 1.0 final -- it is
 now called fft")

 In [2]: scipy.signal.remez(6, [0, 350, 400, 10000, 12000, 22050], [0, 1,
 0], Hz=44100)[[BR]]
 ---------------------------------------------------------------------------
 exceptions.AttributeError                            Traceback (most
 recent call last)

 /home/gabriel/<ipython console>

 /usr/lib/python2.4/site-packages/scipy/signal/signaltools.py in
 remez(numtaps, bands, desired, weight, Hz, type, maxiter,
 grid_density)[[BR]]
     423         weight = [1] * len(desired)[[BR]]
     424[[BR]]
 --> 425     bands = bands.copy()[[BR]]
     426     return sigtools._remez(numtaps, bands, desired, weight, tnum,
 Hz,[[BR]]
     427                            maxiter, grid_density)[[BR]]

 AttributeError: 'list' object has no attribute 'copy'

 In [3]:

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/250>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list