GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Fix interconnect type conversion bug for StateSpace systems by murrayrm · Pull Request #788 · python-control/python-control Conversation
Member
This PR fixes a problem that was identified in PR #785, where interconnecting a In addition, there was a bug where the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Coverage increased (+0.04%) to 94.801% when pulling a9a6226 on murrayrm:interconnect_type_conversion-12Nov2022 into beb629b on python-control:main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the one comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| type(self)) | ||
|
|
||
| def dynamics(self, t, x, u): | ||
| def dynamics(self, t, x, u, params={}): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to use the params=None, if params is None: params={} pattern here? Using mutable objects for default parameters is usually not a good idea.
Also, why not **kwargs?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| returns the time derivative | ||
|
|
||
| dx/dt = f(t, x, u) | ||
| dx/dt = f(t, x, u, params) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| dx/dt = f(t, x, u, params) | |
| dx/dt = f(t, x, u[, params]) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| If the system is discrete-time, returns the next value of `x`: | ||
|
|
||
| x[t+dt] = f(t, x[t], u[t]) | ||
| x[t+dt] = f(t, x[t], u[t], params) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| x[t+dt] = f(t, x[t], u[t], params) | |
| x[t+dt] = f(t, x[t], u[t][, params]) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One other thought: currently, StateSpace.dynamics does not have params as a kwarg, but it probably should (maybe with a warning that it will be ignored).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Like the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.