8000 Fix bdalg.connect by sawyerbfuller · Pull Request #474 · python-control/python-control · GitHub
[go: up one dir, main page]

Skip to content

Fix bdalg.connect #474

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 21, 2020
Merged

Conversation

sawyerbfuller
Copy link
Contributor

Fixes bug in index check in bdalg.connect described in #421.

Also added a few more checks, helpful error messages, and unit tests.

@sawyerbfuller sawyerbfuller changed the title Fix connect Fix bdalg.connect Dec 19, 2020
@coveralls
Copy link
coveralls commented Dec 19, 2020

Coverage Status

Coverage increased (+0.04%) to 86.187% when pulling 9c5b5e4 on sawyerbfuller:fix-connect into 2d7aad0 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 86.052% when pulling 85cc6ca on sawyerbfuller:fix-connect into 2d7aad0 on python-control:master.

@sawyerbfuller sawyerbfuller linked an issue Dec 19, 2020 that may be closed by this pull request
@roryyorke
Copy link
Contributor

Looks good to me. One minor stylistic comment: you don't need as context if you're not going to use context.

Copy link
Contributor
@bnavigator bnavigator left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! One step closer to 0.8.4 🎉

Some more comments about style and the tests.

@@ -270,6 +272,46 @@ def test_feedback_args(self):
sys = ctrl.feedback(1, frd)
self.assertTrue(isinstance(sys, ctrl.FRD))

def testConnect(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

These tests only look for failures. What about tests that successfully connect systems?

Obviously I will pytest.parametrize this for #438

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests only look for failures. What about tests that successfully connect systems?

good idea; added.

Obviously I will pytest.parametrize this for #438

thx!

@bnavigator bnavigator added this to the 0.8.4 milestone Dec 19, 2020
@bnavigator bnavigator merged commit de3509e into python-control:master Dec 21, 2020
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.

A bug in bdalg.connect function
4 participants
0