-
Notifications
You must be signed in to change notification settings - Fork 438
miso tf2ss fails without slycot #120
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
Labels
Comments
Scipy doesn't seem to like SIMO or MISO, including when denominators are matched. Note the error in that last case: I get the feeling import sys
import numpy
import scipy
print('sys.version:',sys.version)
print('numpy.__version__:',numpy.__version__)
print('scipy.__version__:',scipy.__version__)
import numpy as np
from control.matlab import *
import scipy.signal
def testit(sys):
print('sys is ',sys.outputs,'x',sys.inputs)
try:
scipy.signal.lti(np.squeeze(sys.num),np.squeeze(sys.den))
print('success!')
except ValueError as e:
print('gives ValueError',e)
# 1x1
testit(tf([1],[1,1]))
# 1x1 as list-of-list-of-vectors
testit(tf([[[1]]],[[[1,1]]]))
# 1x3
testit(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]]]))
# 3x1
testit(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]]]))
# 3x1 with matched denominators
testit(tf([[[-235, 1.146e4]],
[[-235, 1.146E4]],
[[-235, 1.146E4, 0]]],
[[[1, 48.78, 0]],
[[1, 48.78, 0]],
[[1, 48.78, 0]]])) gives
|
murrayrm
added a commit
to murrayrm/python-control
that referenced
this issue
Dec 26, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason.
The text was updated successfully, but these errors were encountered: