Title: Standardize squeeze processing in frequency response functions by murrayrm · Pull Request #507 · python-control/python-control · GitHub
Open Graph Title: Standardize squeeze processing in frequency response functions by murrayrm · Pull Request #507 · python-control/python-control
X Title: Standardize squeeze processing in frequency response functions by murrayrm · Pull Request #507 · python-control/python-control
Description: This PR addresses issue #453 by implementing a uniform method for handling the squeeze keyword in frequency response functions (frequency_response, __call__, etc). This PR matches the changes in PR #511 to improve consistency between time and frequency response, as described in issue #453. The following behavior is implemented: squeeze=None (default case): squeeze inputs and outputs, but leave frequencies alone. This is consistent with current behavior. squeeze=True: numpy squeeze => all singleton axes are removed, consistent with numpy. squeeze=False: full MIMO, even for SISO. You always get a p x m array for outputs versus inputs. Additional changes: A new global default control.squeeze_frequency_response that sets the default value for the squeeze keyword (set to None initially). Passing a set of frequencies (or complex values) that is not a scalar of a 1D array_like generates a ValueError exception. Updated docstrings Unit tests to make sure that all of the various cases for squeeze are correct. Some minor PEP8 cleanup along the way
Open Graph Description: This PR addresses issue #453 by implementing a uniform method for handling the squeeze keyword in frequency response functions (frequency_response, __call__, etc). This PR matches the changes in P...
X Description: This PR addresses issue #453 by implementing a uniform method for handling the squeeze keyword in frequency response functions (frequency_response, __call__, etc). This PR matches the changes in P...
Opengraph URL: https://github.com/python-control/python-control/pull/507
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8a96a1b4-2a78-0522-7e94-81bc433b0547 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AFF4:2FA711:225404:2F8580:697BBABF |
| html-safe-nonce | 42ac880ce14009089f925c6a63bc7196a5e066256d5b47755f1f7d5ec7b1ee08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkY0OjJGQTcxMToyMjU0MDQ6MkY4NTgwOjY5N0JCQUJGIiwidmlzaXRvcl9pZCI6Ijc0NzA5OTkzMTU2OTk5NzI3OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 321b1715e09a924341fa7f685c3c1097721fdb5ade4aa0c6af614f0b4bb138ca |
| hovercard-subject-tag | pull_request:554589170 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/507/files |
| twitter:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| og:image:alt | This PR addresses issue #453 by implementing a uniform method for handling the squeeze keyword in frequency response functions (frequency_response, __call__, etc). This PR matches the changes in P... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab413746e1b95376981dfec4a04b2384a611b96affe802ee3ee6d752200afbb1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bea0e0f1995ab0bb7fa336572c353032cf897ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width