Title: use __call__ instead of evalfr in lti system classes by sawyerbfuller · Pull Request #449 · python-control/python-control · GitHub
Open Graph Title: use __call__ instead of evalfr in lti system classes by sawyerbfuller · Pull Request #449 · python-control/python-control
X Title: use __call__ instead of evalfr in lti system classes by sawyerbfuller · Pull Request #449 · python-control/python-control
Description: fixes problem reported in #434 and extends #179. move to __call__ as primary frequency response method to be used in TransferFunction, StateSpace, and FrequencyResponseData systems. (__call__ is new for StateSpace, and FrequencyResponse) the new __call__ has same interface for all three classes, and can now take one or an array of s, unlike the old _evalfr, which could only take one s it also adds a convenient keyword argument squeeze=True that automatically squeezes output if sys is SISO for FrequencyResponseData.__call__(s), s must be purely imaginary or an error is raised private method _evalfr that was inconsistent with matlab module matlab.evalfr was removed in favor of __call__ method sys.evalfr(s) has been deprecated for 2.5 years and is now removed. use __call__ instead, or matlab.evalfr(sys, s) (following discussion in #434) method sys.freqresp(omega) is now deprecated. Use new pythonic methodsys.frequency_respose instead, or freqresp(sys, omega) from matlab module (following discussion in #434) horner(s) now does the same thing for both TransferFunction and StateSpace systems: can evaluate at multiple values of s de-duplication of code, cleanup, pythonization and vectorization of code where possible FRD.eval behavior was left as-is, except for an optional squeeze argument
Open Graph Description: fixes problem reported in #434 and extends #179. move to __call__ as primary frequency response method to be used in TransferFunction, StateSpace, and FrequencyResponseData systems. (__call__ is n...
X Description: fixes problem reported in #434 and extends #179. move to __call__ as primary frequency response method to be used in TransferFunction, StateSpace, and FrequencyResponseData systems. (__call__ is n...
Opengraph URL: https://github.com/python-control/python-control/pull/449
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d96f71d5-3568-b43d-bcf1-efb4623feace |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | CCA6:3BF324:68A170:958E3C:6979EEE6 |
| html-safe-nonce | e80fd7433014c519c4de2911eb090af0a97a53aacf5e22b4ea34a5c9f478ce83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0E2OjNCRjMyNDo2OEExNzA6OTU4RTNDOjY5NzlFRUU2IiwidmlzaXRvcl9pZCI6IjgyNTgwNDY3Mjk3NTI1Mzg4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 61487068e1758bf55c2a88ad6a1bc054739b246f283c2bf5a2bb1a4014658aca |
| hovercard-subject-tag | pull_request:468184125 |
| 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/449/checks |
| twitter:image | https://avatars.githubusercontent.com/u/58706249?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/58706249?s=400&v=4 |
| og:image:alt | fixes problem reported in #434 and extends #179. move to __call__ as primary frequency response method to be used in TransferFunction, StateSpace, and FrequencyResponseData systems. (__call__ is n... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d518616844426fb176f4177c4776349f6e70ef1ce75f459c8c53bf9293bb6982 |
| 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 | 22c6ce7724007ae85d7487fce3308a1c7cea8be6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width