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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a0c88ba9-5411-57b3-2518-9384c9416d23 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9A40:3A552F:28F0F4:39872D:697B403E |
| html-safe-nonce | 2d80687cef1cde2471b5c1ca7db380700efa4dfadf9ffb45b830fe6461e9d6fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTQwOjNBNTUyRjoyOEYwRjQ6Mzk4NzJEOjY5N0I0MDNFIiwidmlzaXRvcl9pZCI6IjIyNTU3NzU1NDY0MjE3NTU5NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a45274bfb9bc46c23e4024904be3de10f4415aeeee96eed04ab8712525536fcf |
| hovercard-subject-tag | pull_request:554589170 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width