Closed
Description
Travis CI tests are failing in semi-random ways and generating the following error:
FAIL: testConvert (control.tests.convert_test.TestConvert)
Test state space to transfer function conversion.
---------------------------
4F9F
-------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/python-control/python-control/control/tests/convert_test.py", line 86, in testConvert
ssTransformed = matlab.ss(tfOriginal)
File "/home/travis/build/python-control/python-control/control/statesp.py", line 1149, in ss
return tf2ss(sys)
File "/home/travis/build/python-control/python-control/control/statesp.py", line 1223, in tf2ss
return _convertToStateSpace(sys)
File "/home/travis/build/python-control/python-control/control/statesp.py", line 779, in _convertToStateSpace
num, den = sys._common_den()
File "/home/travis/build/python-control/python-control/control/xferfcn.py", line 821, in _common_den
% quad.imag.max()
AssertionError: Quadratic has a nontrivial imaginary part: 1.06581e-14
The error is not always present and re-running the build sometimes fixes it. It appears the problem may be due to the way that random test cases are generated (although the seed is fixed in the unit test => not sure how we are getting different results on rebuild).
Metadata
Metadata
Assignees
Labels
No labels