6939e33b11dda6815fd851b9ca943625ab606971,scipy/signal/tests/test_ltisys.py,TestZerosPolesGain,test_properties,#TestZerosPolesGain#,882
Before Change
s2 = ZerosPolesGain([2], [5], 3)
s2.num = [1, 0]
s2.den = [1, -1]
self._compare_systems(s, s2)
class Test_abcd_normalize(object):
def setup(self):
After Change
// Getters
s = ZerosPolesGain(0, 1, 1)
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
assert_equal(s.num, [1, 0])
assert_equal(s.den, [1, -1])
assert_equal(s.A, 1)
assert_equal(s.B, 1)
assert_equal(s.C, 1)
assert_equal(s.D, 1)
// state space setters
s2 = ZerosPolesGain([2], [6], 3)
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
s2.A = 1
s2.B = 1
s2.C = 1
s2.D = 1
self._compare_systems(s, s2)
// tf setters
s2 = ZerosPolesGain([2], [5], 3)
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
s2.num = [1, 0]
s2.den = [1, -1]
self._compare_systems(s, s2)
class Test_abcd_normalize(object):
def setup(self):
self.A = np.array([[1.0, 2.0], [3.0, 4.0]])
self.B = np.array([[-1.0], [5.0]])
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 10
Instances
Project Name: scipy/scipy
Commit Name: 6939e33b11dda6815fd851b9ca943625ab606971
Time: 2016-06-13
Author: fberkenkamp@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: TestZerosPolesGain
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 6939e33b11dda6815fd851b9ca943625ab606971
Time: 2016-06-13
Author: fberkenkamp@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: TestTransferFunction
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 6939e33b11dda6815fd851b9ca943625ab606971
Time: 2016-06-13
Author: fberkenkamp@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: TestStateSpace
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 5c1eb4aa3bfe3eccb458a95f3e36f2ad182948b0
Time: 2016-06-13
Author: befelix@ethz.ch
File Name: scipy/signal/tests/test_dltisys.py
Class Name: TestStateSpaceDisc
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 5c1eb4aa3bfe3eccb458a95f3e36f2ad182948b0
Time: 2016-06-13
Author: befelix@ethz.ch
File Name: scipy/signal/tests/test_dltisys.py
Class Name: TestTransferFunction
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 6939e33b11dda6815fd851b9ca943625ab606971
Time: 2016-06-13
Author: fberkenkamp@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: TestZerosPolesGain
Method Name: test_properties
Project Name: scipy/scipy
Commit Name: 5c1eb4aa3bfe3eccb458a95f3e36f2ad182948b0
Time: 2016-06-13
Author: befelix@ethz.ch
File Name: scipy/signal/tests/test_dltisys.py
Class Name: TestZerosPolesGain
Method Name: test_properties