Skip to content

Commit 6a200db

Browse files
committed
use np.matmul for compatibility with python 2.7
1 parent 6b69ad4 commit 6a200db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

control/tests/frd_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ def test_repr_str(self):
424424
"array([[[1. +0.j , 0.9 +0.1j, 0.1 +2.j , 0.05+3.j ]]])," \
425425
" array([ 0.1, 1. , 10. , 100. ]))"
426426
ref1 = ref0[:-1] + ", smooth=True)"
427-
sysm = FrequencyResponseData(array([[1],[2]]) @ sys0.fresp, sys0.omega)
427+
sysm = FrequencyResponseData(
428+
np.matmul(array([[1],[2]]), sys0.fresp), sys0.omega)
428429

429430
self.assertEqual(repr(sys0), ref0)
430431
self.assertEqual(repr(sys1), ref1)

0 commit comments

Comments
 (0)