-
Notifications
You must be signed in to change notification settings - Fork 438
Create functions for better indexing of MIMO transfer functions #256
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
What is "slide functionality" ? I glanced at #20, it's not immediately obvious to me how this is related to MIMO slicing, other than allowing a MIMO sub-object to be submitted for block diagram operations. If I read #246 right, it does implement this for TFs - do you want this for FRD and SS objects too? Maybe change the title to "MIMO system objects", as it is in the text. |
Ah, right; I think my mind jumped to GUI sliders. Unfortunately, and unlike Matlab, Python only supports slice (and ellipsis Tangentially related: the last time I used the control toolbox, I found the signal naming capability very handy; this lets one combine a number of LTI objects using |
@roryyorke I use signal naming extensively. I wrote a little wrapper around 'connect' for my work. Would like to have I/O names as an element of the systems so they are preserved through normal transformations. As it is I use the ConnectName function for adding, multiplying, feedback operations; but its not very clean. Slicing should also be accomplished by name, rather than trying to keep track of the indices. I've always found managing named signals much less error prone than counting out index numbers.
|
FYI, the |
@murrayrm Thanks, I'll look for it. |
It is actually not that sophisticated. It's the slice notation of numpy and python that is a bit annoying. We have to regularize things like Same is also present for the State class in the same file |
oops just saw the timestamps sorry for the noise. |
Motivated by PR #246, which implemented indexing for transfer functions, it would be nice to be able to use Python slice notation for MIMO system objects. So if you had a MIMO transfer function G, you could say things like G[:,1:3] to get a subset of the transfer functions.
A full implementation should allow slice functionality to be used in simulation and plotting functions, block diagram functions (issue #20), etc.
Will use this issue to keep track of some of the possibilities and see if there is a good way forward.
The text was updated successfully, but these errors were encountered: