-
Notifications
You must be signed in to change notification settings - Fork 441
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
Fix bdalg.connect #474
Conversation
… docstring updated to indicate that Q matrix can be >2 columns
Looks good to me. One minor stylistic comment: you don't need |
There was a problem hiding this 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): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
Fixes bug in index check in
bdalg.connect
described in #421.Also added a few more checks, helpful error messages, and unit tests.