Closed CameronDevine closed 5 years ago
Same here, is there something I can do to help you solve these examples?
lsim
is not part of control
but control.matlab
. I made that move and then I got this error:
File "SIPPY/Examples/ARMAX_MIMO.py", line 121, in <module>
err_outputH[0,:], Time, Xsim = cnt.lsim(H_sample1, err_inputH[0,:], Time)
ValueError: could not broadcast input array from shape (401,1) into shape (401)
Thanks to everyone for pointing out this problem. We had studied these problems during the past months and it seems that the control package is producing this error. Depending on the version you have installed lsim
can be found in control.lsim
or in control.matlab.lsim
.
We are working on a generalization of the code, to avoid this issue.
The following bit of code should fix the issue,
import control as cnt
if not hasattr(cnt, 'lsim'):
from control.matlab import lsim
cnt.lsim = lsim
The following bit of code should fix the issue,
import control as cnt if not hasattr(cnt, 'lsim'): from control.matlab import lsim cnt.lsim = lsim
It works perfect, thanks!
Closing this issue due to recent merge.
I attempted to run the examples, but I could only get the
SS.py
script to run. There appears to be a problem with the shape of one of the outputs oflsim
. The error messages can be found here, https://travis-ci.org/CameronDevine/SIPPY/jobs/413816972