cc85f495cb738667a27d5184901fc9b3f620fe5b,scipy/signal/tests/test_ltisys.py,Test_freqresp,test_from_state_space,#Test_freqresp#,394
Before Change
// the shape of A.
A = np.array([[1.0, 2.0], [3.0, 4.0]])
B = np.array([[5.0], [6.0]])
C = np.array([[7.0, 8.0] ])
D = np.array([[9.0]])
system = lti(A, B, C, D)
w, mag, phase = bode(system, n=2)
After Change
B = np.array([[0.0],[0.0],[1.0]])
C = np.array([[1.0, 0.0, 0.0]])
D = np.array([[0.0]])
with warnings.catch_warnings():
warnings.simplefilter("ignore", BadCoefficients)
system = lti(A, B, C, D)
w, H = freqresp(system, n=100)
expected_magnitude = np.sqrt(1.0 / (1.0 + w**6))
assert_almost_equal(np.abs(H), expected_magnitude)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: scipy/scipy
Commit Name: cc85f495cb738667a27d5184901fc9b3f620fe5b
Time: 2013-05-06
Author: warren.weckesser@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_freqresp
Method Name: test_from_state_space
Project Name: scipy/scipy
Commit Name: cc85f495cb738667a27d5184901fc9b3f620fe5b
Time: 2013-05-06
Author: warren.weckesser@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_freqresp
Method Name: test_from_state_space
Project Name: scipy/scipy
Commit Name: cc85f495cb738667a27d5184901fc9b3f620fe5b
Time: 2013-05-06
Author: warren.weckesser@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_bode
Method Name: test_from_state_space
Project Name: has2k1/plotnine
Commit Name: 7c88844df481bed89140ce9be154d5460663805e
Time: 2015-05-18
Author: has2k1@gmail.com
File Name: ggplot/tests/test_stat_calculate_methods.py
Class Name:
Method Name: test_stat_bin