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

Complex matrices#372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
lytex wants to merge2 commits intopython-control:masterfromlytex:complex
Closed

Conversation

lytex
Copy link

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

@@ -21,15 +21,15 @@ def setUp(self):
"""Set up a MIMO system to test operations on."""

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

@@ -117,20 +117,23 @@ def test_zero_siso(self):

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@murrayrmmurrayrmmurrayrm left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@lytex@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp