4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e,scipy/signal/tests/test_filter_design.py,TestEllipord,test_lowpass,#TestEllipord#,259

Before Change


class TestEllipord(TestCase):

    def test_lowpass(self):
        n, Wn = ellipord(0.2, 0.3, 3, 60)
        assert_equal(n, 5)
        assert_allclose(Wn, 0.2, rtol=1e-15)

    def test_highpass(self):

After Change


        w, h = freqz(b, a)
        w /= np.pi
        assert_array_less(-rp - 0.1, dB(h[w <= wp]))
        assert_array_less(dB(h[ws <= w]), -rs + 0.1)

        assert_equal(N, 5)
        assert_allclose(Wn, 0.2, rtol=1e-15)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

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: TestEllipord
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: TestEllipord
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: TestEllipord
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: TestEllipord
Method Name: test_highpass


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: TestEllipord
Method Name: test_analog