@@ -191,8 +191,10 @@ def test_reverse_sign_mimo(self):
191191
192192 for i in range (sys3 .noutputs ):
193193 for j in range (sys3 .ninputs ):
194- np .testing .assert_allclose (sys2 ._num [i , j ], sys3 ._num [i , j ])
195- np .testing .assert_allclose (sys2 ._den [i , j ], sys3 ._den [i , j ])
194+ np .testing .assert_allclose (
195+ sys2 .num_array [i , j ], sys3 .num_array [i , j ])
196+ np .testing .assert_allclose (
197+ sys2 .den_array [i , j ], sys3 .den_array [i , j ])
196198
197199 # Tests for TransferFunction.__add__
198200
@@ -237,8 +239,8 @@ def test_add_mimo(self):
237239
238240 for i in range (sys3 .noutputs ):
239241 for j in range (sys3 .ninputs ):
240- np .testing .assert_allclose (sys3 ._num [i , j ], num3 [i ][j ])
241- np .testing .assert_allclose (sys3 ._den [i , j ], den3 [i ][j ])
242+ np .testing .assert_allclose (sys3 .num_array [i , j ], num3 [i ][j ])
243+ np .testing .assert_allclose (sys3 .den_array [i , j ], den3 [i ][j ])
242244
243245 # Tests for TransferFunction.__sub__
244246
@@ -285,8 +287,8 @@ def test_subtract_mimo(self):
285287
286288 for i in range (sys3 .noutputs ):
287289 for j in range (sys3 .ninputs ):
288- np .testing .assert_allclose (sys3 ._num [i , j ], num3 [i ][j ])
289- np .testing .assert_allclose (sys3 ._den [i , j ], den3 [i ][j ])
290+ np .testing .assert_allclose (sys3 .num_array [i , j ], num3 [i ][j ])
291+ np .testing .assert_allclose (sys3 .den_array [i , j ], den3 [i ][j ])
290292
291293 # Tests for TransferFunction.__mul__
292294
@@ -341,8 +343,8 @@ def test_multiply_mimo(self):
341343
342344 for i in range (sys3 .noutputs ):
343345 for j in range (sys3 .ninputs ):
344- np .testing .assert_allclose (sys3 ._num [i , j ], num3 [i ][j ])
345- np .testing .assert_allclose (sys3 ._den [i , j ], den3 [i ][j ])
346+ np .testing .assert_allclose (sys3 .num_array [i , j ], num3 [i ][j ])
347+ np .testing .assert_allclose (sys3 .den_array [i , j ], den3 [i ][j ])
346348
347349 # Tests for TransferFunction.__div__
348350
@@ -664,9 +666,9 @@ def test_convert_to_transfer_function(self):
664666 for i in range (sys .noutputs ):
665667 for j in range (sys .ninputs ):
666668 np .testing .assert_array_almost_equal (
667- tfsys ._num [i , j ], num [i ][j ])
669+ tfsys .num_array [i , j ], num [i ][j ])
668670 np .testing .assert_array_almost_equal (
669- tfsys ._den [i , j ], den [i ][j ])
671+ tfsys .den_array [i , j ], den [i ][j ])
670672
671673 def test_minreal (self ):
672674 """Try the minreal function, and also test easy entry by creation
@@ -1123,9 +1125,9 @@ def test_repr(self, Hargs, ref):
11231125 for p in range (len (H .num )):
11241126 for m in range (len (H .num [0 ])):
11251127 np .testing .assert_array_almost_equal (
1126- H ._num [p , m ], H2 ._num [p , m ])
1128+ H .num_array [p , m ], H2 .num_array [p , m ])
11271129 np .testing .assert_array_almost_equal (
1128- H ._den [p , m ], H2 ._den [p , m ])
1130+ H .den_array [p , m ], H2 .den_array [p , m ])
11291131 assert H .dt == H2 .dt
11301132
11311133 def test_sample_named_signals (self ):
@@ -1183,8 +1185,10 @@ def test_returnScipySignalLTI(self, mimotf):
11831185 sslti = mimotf .returnScipySignalLTI (strict = False )
11841186 for i in range (2 ):
11851187 for j in range (3 ):
1186- np .testing .assert_allclose (sslti [i ][j ].num , mimotf ._num [i , j ])
1187- np .testing .assert_allclose (sslti [i ][j ].den , mimotf ._den [i , j ])
1188+ np .testing .assert_allclose (
1189+ sslti [i ][j ].num , mimotf .num_array [i , j ])
1190+ np .testing .assert_allclose (
1191+ sslti [i ][j ].den , mimotf .den_array [i , j ])
11881192 if mimotf .dt == 0 :
11891193 assert sslti [i ][j ].dt is None
11901194 else :
0 commit comments