4afdc53218ffc1356c008ef2e4a3c4c5d4f1795e,scipy/signal/tests/test_filter_design.py,TestCheb1ord,test_highpass,#TestCheb1ord#,202
Before Change
assert_allclose(Wn, 0.2, rtol=1e-15)
def test_highpass(self):
n, Wn = cheb1ord(0.3, 0.2, 3, 70)
assert_equal(n, 9)
assert_allclose(Wn, 0.3, rtol=1e-15)
def test_bandpass(self):
After Change
assert_allclose(Wn, 0.2, rtol=1e-15)
def test_highpass(self):
wp = 0.3
ws = 0.2
rp = 3
rs = 70
N, Wn = cheb1ord(wp, ws, rp, rs, False)
b, a = cheby1(N, rp, Wn, "high", False)
w, h = freqz(b, a)
w /= np.pi
assert_array_less(-rp - 0.1, dB(h[wp <= w]))
assert_array_less(dB(h[w <= ws]), -rs + 0.1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 12
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: TestCheb1ord
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: TestCheb1ord
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: TestCheb1ord
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: TestCheb1ord
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: TestCheb1ord
Method Name: test_highpass