4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e,scipy/signal/tests/test_filter_design.py,TestCheb2ord,test_bandpass,#TestCheb2ord#,240

Before Change


    def test_bandpass(self):
        n, Wn = cheb2ord([0.2, 0.5], [0.1, 0.6], 3, 80)
        assert_equal(n, 9)
        assert_array_almost_equal(Wn, [0.1, 0.6], decimal=1)

    def test_bandstop(self):
        n, Wn = cheb2ord([0.1, 0.6], [0.2, 0.5], 3, 90)
        assert_equal(n, 10)

After Change


        rp = 3
        rs = 80
        N, Wn = cheb2ord(wp, ws, rp, rs, False)
        b, a = cheby2(N, rs, Wn, "bp", False)
        w, h = freqz(b, a)
        w /= np.pi
        assert_array_less(-rp - 0.1,
                          dB(h[np.logical_and(wp[0] <= w, w <= wp[1])]))
        assert_array_less(dB(h[np.logical_or( w <= ws[0], ws[1] <= w)]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e
Time: 2014-01-28
Author: endolith@gmail.com
File Name: scipy/signal/tests/test_filter_design.py
Class Name: TestCheb2ord
Method Name: test_bandpass


Project Name: scipy/scipy
Commit Name: 4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e
Time: 2014-01-28
Author: endolith@gmail.com
File Name: scipy/signal/tests/test_filter_design.py
Class Name: TestCheb2ord
Method Name: test_bandpass


Project Name: scipy/scipy
Commit Name: 4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e
Time: 2014-01-28
Author: endolith@gmail.com
File Name: scipy/signal/tests/test_filter_design.py
Class Name: TestCheb2ord
Method Name: test_bandstop


Project Name: scipy/scipy
Commit Name: 4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e
Time: 2014-01-28
Author: endolith@gmail.com
File Name: scipy/signal/tests/test_filter_design.py
Class Name: TestCheb2ord
Method Name: test_lowpass


Project Name: scipy/scipy
Commit Name: 4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e
Time: 2014-01-28
Author: endolith@gmail.com
File Name: scipy/signal/tests/test_filter_design.py
Class Name: TestCheb2ord
Method Name: test_highpass