We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba33c21 commit 2156adfCopy full SHA for 2156adf
1 file changed
control/tests/matlab_test.py
@@ -582,10 +582,11 @@ def testOpers(self, siso):
582
# siso.tf1 / siso.ss2
583
584
def testUnwrap(self):
585
- """Call unwrap()"""
+ # control.matlab.unwrap
586
phase = np.array(range(1, 100)) / 10.
587
wrapped = phase % (2 * np.pi)
588
unwrapped = unwrap(wrapped)
589
+ np.testing.assert_array_almost_equal(phase, unwrapped)
590
591
def testSISOssdata(self, siso):
592
"""Call ssdata()
0 commit comments