[Scipy-tickets] [SciPy] #1863: scipy.signal.bode doesn't work for state space (A, B, C, D) argument
SciPy Trac
scipy-tickets@scipy....
Sun Mar 10 21:15:49 CDT 2013
#1863: scipy.signal.bode doesn't work for state space (A, B, C, D) argument
------------------------+---------------------------------------------------
Reporter: hazelnusse | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
------------------------+---------------------------------------------------
See attached for an example of what fails. This is the error I get:
/home/hazelnusse/usr/lib64/python3.2/site-
packages/scipy/signal/filter_design.py:306: BadCoefficients: Badly
conditioned filter coefficients (numerator): the results may be
meaningless
"results may be meaningless", BadCoefficients)
Traceback (most recent call last):
File "test_bode.py", line 19, in <module>
bode((A, B, C, D))
File "/home/hazelnusse/usr/lib64/python3.2/site-
packages/scipy/signal/ltisys.py", line 944, in bode
y = numpy.polyval(sys.num, jw) / numpy.polyval(sys.den, jw)
File "/home/hazelnusse/usr/lib64/python3.2/site-
packages/numpy/lib/polynomial.py", line 671, in polyval
y = x * y + p[i]
ValueError: operands could not be broadcast together with shapes (100) (3)
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1863>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list