4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e,scipy/signal/tests/test_filter_design.py,TestButtord,test_lowpass,#TestButtord#,161
Before Change
class TestButtord(TestCase):
def test_lowpass(self):
n, Wn = buttord(0.2, 0.3, 3, 60)
assert_equal(n, 16)
assert_allclose(Wn, 2.034240543183123e-01, rtol=1e-15)
After Change
class TestButtord(TestCase):
def test_lowpass(self):
wp = 0.2
ws = 0.3
rp = 3
rs = 60
N, Wn = buttord(wp, ws, rp, rs, False)
b, a = butter(N, Wn, "lowpass", False)
w, h = freqz(b, a)
w /= np.pi
assert_array_less(-rp - 0.1, dB(h[w <= wp]))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
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: TestButtord
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: TestButtord
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: TestButtord
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: TestButtord
Method Name: test_bandstop