@@ -190,8 +190,8 @@ def test_reverse_sign_mimo(self):
190190
191191 for i in range (sys3 .noutputs ):
192192 for j in range (sys3 .ninputs ):
193- np .testing .assert_allclose (sys2 .num [ i ][ j ], sys3 .num [ i ][ j ])
194- np .testing .assert_allclose (sys2 .den [ i ][ j ], sys3 .den [ i ][ j ])
193+ np .testing .assert_allclose (sys2 ._num [ i , j ], sys3 ._num [ i , j ])
194+ np .testing .assert_allclose (sys2 ._den [ i , j ], sys3 ._den [ i , j ])
195195
196196 # Tests for TransferFunction.__add__
197197
@@ -236,8 +236,8 @@ def test_add_mimo(self):
236236
237237 for i in range (sys3 .noutputs ):
238238 for j in range (sys3 .ninputs ):
239- np .testing .assert_allclose (sys3 .num [ i ][ j ], num3 [i ][j ])
240- np .testing .assert_allclose (sys3 .den [ i ][ j ], den3 [i ][j ])
239+ np .testing .assert_allclose (sys3 ._num [ i , j ], num3 [i ][j ])
240+ np .testing .assert_allclose (sys3 ._den [ i , j ], den3 [i ][j ])
241241
242242 # Tests for TransferFunction.__sub__
243243
@@ -284,8 +284,8 @@ def test_subtract_mimo(self):
284284
285285 for i in range (sys3 .noutputs ):
286286 for j in range (sys3 .ninputs ):
287- np .testing .assert_allclose (sys3 .num [ i ][ j ], num3 [i ][j ])
288- np .testing .assert_allclose (sys3 .den [ i ][ j ], den3 [i ][j ])
287+ np .testing .assert_allclose (sys3 ._num [ i , j ], num3 [i ][j ])
288+ np .testing .assert_allclose (sys3 ._den [ i , j ], den3 [i ][j ])
289289
290290 # Tests for TransferFunction.__mul__
291291
@@ -340,8 +340,8 @@ def test_multiply_mimo(self):
340340
341341 for i in range (sys3 .noutputs ):
342342 for j in range (sys3 .ninputs ):
343- np .testing .assert_allclose (sys3 .num [ i ][ j ], num3 [i ][j ])
344- np .testing .assert_allclose (sys3 .den [ i ][ j ], den3 [i ][j ])
343+ np .testing .assert_allclose (sys3 ._num [ i , j ], num3 [i ][j ])
344+ np .testing .assert_allclose (sys3 ._den [ i , j ], den3 [i ][j ])
345345
346346 # Tests for TransferFunction.__div__
347347
@@ -662,10 +662,10 @@ def test_convert_to_transfer_function(self):
662662
663663 for i in range (sys .noutputs ):
664664 for j in range (sys .ninputs ):
665- np .testing .assert_array_almost_equal (tfsys . num [ i ][ j ],
666- num [i ][j ])
667- np .testing .assert_array_almost_equal (tfsys . den [ i ][ j ],
668- den [i ][j ])
665+ np .testing .assert_array_almost_equal (
666+ tfsys . _num [ i , j ], num [i ][j ])
667+ np .testing .assert_array_almost_equal (
668+ tfsys . _den [ i , j ], den [i ][j ])
669669
670670 def test_minreal (self ):
671671 """Try the minreal function, and also test easy entry by creation
@@ -1121,8 +1121,10 @@ def test_repr(self, Hargs, ref):
11211121 H2 = eval (H .__repr__ ())
11221122 for p in range (len (H .num )):
11231123 for m in range (len (H .num [0 ])):
1124- np .testing .assert_array_almost_equal (H .num [p ][m ], H2 .num [p ][m ])
1125- np .testing .assert_array_almost_equal (H .den [p ][m ], H2 .den [p ][m ])
1124+ np .testing .assert_array_almost_equal (
1125+ H ._num [p , m ], H2 ._num [p , m ])
1126+ np .testing .assert_array_almost_equal (
1127+ H ._den [p , m ], H2 ._den [p , m ])
11261128 assert H .dt == H2 .dt
11271129
11281130 def test_sample_named_signals (self ):
@@ -1180,8 +1182,8 @@ def test_returnScipySignalLTI(self, mimotf):
11801182 sslti = mimotf .returnScipySignalLTI (strict = False )
11811183 for i in range (2 ):
11821184 for j in range (3 ):
1183- np .testing .assert_allclose (sslti [i ][j ].num , mimotf .num [ i ][ j ])
1184- np .testing .assert_allclose (sslti [i ][j ].den , mimotf .den [ i ][ j ])
1185+ np .testing .assert_allclose (sslti [i ][j ].num , mimotf ._num [ i , j ])
1186+ np .testing .assert_allclose (sslti [i ][j ].den , mimotf ._den [ i , j ])
11851187 if mimotf .dt == 0 :
11861188 assert sslti [i ][j ].dt is None
11871189 else :
0 commit comments