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 — extrapolation in ufun throwed errors by miroslavfikar · Pull Request #682 · python-control/python-control Conversation
Contributor
I came across situation when interpolation of u in ufun was requested beyond the actual time interval. Attached MWE file throws error, proposed modification resolves the issue. There were two possibilities to resolve the issue: either to take the highest value of time known (interpolation) or to prolonge the last interval to the right (extrapolation). I chose the first one to be consistent with already treated case to the left.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.002%) to 92.721% when pulling 9bd61b0 on miroslavfikar:mifi_ufun into 2ce4bbd on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I updated the fix to use extrapolation, since this is what is supposed to happen. The example now runs without throwing and error. (I couldn't figure out how to create a simple unit test since it seem to depend on the integrator asking to sample outside of the time range.) @miroslavfikar It would be useful if you can confirm that the new version gives a correct result for your example. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@murrayrm Yes, I confirm, I get the correct results with your commit, thanks. |
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.