-
Notifications
You must be signed in to change notification settings - Fork 438
Allow unit tests to run without slycot #122
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
Conversation
Changes Unknown when pulling cab850a on murrayrm:noslycot into ** on python-control:master**. |
Changes Unknown when pulling c90a399 on murrayrm:noslycot into ** on python-control:master**. |
|
||
# Set up a transfer function (should always work) | ||
tfcn = control.tf([[[-235, 1.146e4], | ||
[-235, 1.146E4], |
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.
Indentation here and on the next 4 lines seems to be slightly off. I recommend
tfcn = control.tf([[[-235, 1.146e4],
[-235, 1.146E4],
[-235, 1.146E4, 0]]],
[[[1, 48.78, 0],
[1, 48.78, 0, 0],
[0.008, 1.39, 48.78]]])
Changes Unknown when pulling 7de3cc8 on murrayrm:noslycot into ** on python-control:master**. |
For future work, I think that it would be useful to either:
|
This PR provides updates to allow unit tests to run correctly when
slycot
is not installed. There is also a change inxferfcn.py
to allow proper creation of transfer functions when num or den is a 0d ndarray. This can occur whenslycot
is not installed due to a difference in the way that transfer functions are created from state space matrices inxferfcn._convertToTransferFunction()
whenslycot
is not available.