🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@lytex
Copy link

@lytex lytex commented Feb 9, 2020

PR to start to rewrite tests with complex matrices (issue #371) in a new branch. So far it seems that poles and zeros are calculated OK, but adding/subtracting/multiplying systems fails.
I've also commented out some "skip if slycot not installed"; some of these tests nonetheless run with sylicot uninstalled


# sys1: 3-states square system (2 inputs x 2 outputs)
A322 = [[-3., 4., 2.],
A322 = [[-3j, 4j, 2.],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than rewrite an existing test to be complex, better to add a new test and leave the old test in place.

np.testing.assert_almost_equal(true_z, z)

@unittest.skipIf(not slycot_check(), "slycot not installed")
# @unittest.skipIf(not slycot_check(), "slycot not installed")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why comment this out? This will probably cause unit tests to fail when slycot is not installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants