…st so check the output against the same filter coefficients from MATLAB
… 1369. Cherry-picked from 0.10.x branch (9a2dfd6).
A system with max or min poles at 0 will cause bode() to crash when trying to determine a reasonable frequency range for the system. Fix that.
bode() calculates magnitude and phase data of a continuous-time system. Example: $ ipython --pylab >>> from scipy.signal import * >>> s1 = lti(, [1, 1]) >>> w, mag, phase = s1.bode() >>> semilogx(w, mag) # bode magnitude plot >>> figure() >>> semilogx(w, phase) # bode phase plot
Also expand its docstring.
lti objects can be created from a 3-tuple of zero-pole-gain (zpk) values. However, the current code only accepts numpy.array arguments, not plain lists. This is OK: >>> s = lti(array(), array([-1]), 1) This is not: >>> s = lti(, [-1], 1) [...] AttributeError: 'list' object has no attribute 'shape' Using plain Python lists is intuitive and user friendly, so make that work as well.
… or 1.2 (which currently produce NaNs or asymmetrical windows)
…they cannot be introspected)
Fixes a number of tickets - #1528, #1385, #1576, #1632 - and all test warnings. 61c61e9 TST: fix ResourceWarnings under python 3.2. Closes #1385. 8231c9f TST: clean up cluster.vq test file. d6c56db TST: io.wavfile: filter out warning. e089c85 MAINT: fix some build warnings. Closes ticket 1528. d56afef TST: use warning filters correctly in all tests. dcfc275 TST: filter test warnings from bivariate spline tests in interpolate. 8a8a0a2 BUG: py3k: remove unnecessary use of types.NoneType; removed in py3k. e60098c BUG: py3k: func_name attribute of functions was removed, use __name__. dc3a6f6 STY: fix odd use of array.nonzero(). Closes #1632. 242106b STY: simplify opening data files in cluster tests.
Some of these are due to deprecated test functions self.assertEquals, self.assert_, and some are due to the reinterpretion of '/'. Probably all test modules should have from __future__ import division at the top. Edit: reviewed at PR-163.