Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Travis CI sporadically fails in control.tests.convert_test.TestConvert #194

Closed
@murrayrm

Description

@murrayrm

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.----------------------------------------------------------------------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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp