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 — Standardize squeeze processing in frequency response functions by murrayrm · Pull Request #507 · python-control/python-control Conversation
|
|
Coverage increased (+0.03%) to 87.544% when pulling b338e32 on murrayrm:standardize_squeeze into b47ed08 on python-control:master. |
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 commit sequence. make sure to rebase/squash before merge)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
61bba31 to
a69a331
Compare
a69a331 to
4ec6377
Compare
|
https://github.com/python-control/python-control/pull/507/checks?check_run_id=1703414743#step:5:75 Better use pytest.warns to keep the warnings clean. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I've pulled out the time response portion of this PR and submitted it separately in #511. Converting this to a draft for now. See discussion in issue #453. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b337c9c to
90da4fb
Compare
| frequency values. | ||
| """ | ||
| # Make sure that we are operating on a simple list | ||
| if len(np.array(s, ndmin=1).shape) > 1: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| if len(np.array(s, ndmin=1).shape) > 1: | |
| if len(np.atleast1d(s).shape) > 1: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if len(np.array(s, ndmin=1).shape) > 1: | ||
| raise ValueError("input list must be 1D") | ||
|
|
||
| if any(abs(np.array(s, ndmin=1).real) > 0): |
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.
| if any(abs(np.array(s, ndmin=1).real) > 0): | |
| if any(abs(np.atleast1d(s).real) > 0): |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| `m = self.inputs` number of inputs and `p = self.outputs` number of | ||
| outputs. | ||
|
|
||
| In general the system may be multiple input, multiple output |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can probably remove this paragraph. Was added to precisely specify return array size but now no longer needed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| squeeze is False, the array is 3D, indexed by the output, input, and | ||
| frequency. If ``squeeze`` is True then single-dimensional axes are | ||
| removed. | ||
| phase : ndarray |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In ‘notes’ on line 575ish below, this function is actually a wrapper for :meth:’lti.frequency_response’
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.
Because of the way the documentation is built, the LTI class does not show up, so the documentation appears in the StateSpace and TransferFunction classes. Leaving unchanged.
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.
proposal to standardize squeezing output from systems
There was an error while loading. Please reload this page.