-
Notifications
You must be signed in to change notification settings - Fork 438
_remove_useless_states() can change types to ndarrays #82
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
Comments
The link to the source code given in the opening post is floating (i.e., it tracks the tip of master branch). For posterity, a link that is fixed with respect to the current master is python-control/control/statesp.py Lines 182 to 186 in 58a3ff2
|
Yes, I agree that it is fixed. I just ran the example from the opening post using the current tip of
as reported earlier in #82 (comment). |
It seems that if you enter the if statement here then it replaces self.A with
self.A
withzeros(1,1)
which is of type ndarray. This will cause problems later as the library is taking advantage of the fact that * is matrix multiplication not elementwise multiplcation as it would be for ndarrays.Here is an example of the problem
The text was updated successfully, but these errors were encountered: