@@ -693,8 +693,8 @@ def test_minreal_4(self):
693693 h = (z - 1.00000000001 ) * (z + 1.0000000001 ) / (z ** 2 - 1 )
694694 hm = h .minreal ()
695695 hr = TransferFunction ([1 ], [1 ], T )
696- np .testing .assert_array_almost_equal (hm .num [0 ][0 ], hr .num [0 ][0 ])
697- np .testing .assert_equal (hr .dt , hm .dt )
696+ np .testing .assert_allclose (hm .num [0 ][0 ], hr .num [0 ][0 ])
697+ np .testing .assert_allclose (hr .dt , hm .dt )
698698
699699 @slycotonly
700700 def test_state_space_conversion_mimo (self ):
@@ -801,10 +801,10 @@ def test_matrix_array_multiply(self, matarrayin, X_, ij):
801801 def test_dcgain_cont (self ):
802802 """Test DC gain for continuous-time transfer functions"""
803803 sys = TransferFunction (6 , 3 )
804- np .testing .assert_equal (sys .dcgain (), 2 )
804+ np .testing .assert_allclose (sys .dcgain (), 2 )
805805
806806 sys2 = TransferFunction (6 , [1 , 3 ])
807- np .testing .assert_equal (sys2 .dcgain (), 2 )
807+ np .testing .assert_allclose (sys2 .dcgain (), 2 )
808808
809809 sys3 = TransferFunction (6 , [1 , 0 ])
810810 np .testing .assert_equal (sys3 .dcgain (), np .inf )
@@ -819,7 +819,7 @@ def test_dcgain_discr(self):
819819 """Test DC gain for discrete-time transfer functions"""
820820 # static gain
821821 sys = TransferFunction (6 , 3 , True )
822- np .testing .assert_equal (sys .dcgain (), 2 )
822+ np .testing .assert_allclose (sys .dcgain (), 2 )
823823
824824 # averaging filter
825825 sys = TransferFunction (0.5 , [1 , - 0.5 ], True )
@@ -837,7 +837,7 @@ def test_dcgain_discr(self):
837837
838838 # summer
839839 sys = TransferFunction ([1 , - 1 ], [1 ], True )
840- np .testing .assert_equal (sys .dcgain (), 0 )
840+ np .testing .assert_allclose (sys .dcgain (), 0 )
841841
842842 def test_ss2tf (self ):
843843 """Test SISO ss2tf"""
0 commit comments