Skip to content

Commit 73fc6a6

Browse files
committed
reinstate second check in frd_test test_eval()
1 parent e9bff6a commit 73fc6a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/tests/frd_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ def test_operator_conversion(self):
401401
def test_eval(self):
402402
sys_tf = ct.tf([1], [1, 2, 1])
403403
frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3))
404-
np.testing.assert_almost_equal(evalfr(sys_tf, 1J), frd_tf.eval(1))
404+
np.testing.assert_almost_equal(sys_tf(1j), frd_tf.eval(1))
405+
np.testing.assert_almost_equal(sys_tf(1j), frd_tf(1j))
405406

406407
# Should get an error if we evaluate at an unknown frequency
407408
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)