Title: Update evalfr() to be consistent with MATLAB usage by murrayrm · Pull Request #179 · python-control/python-control · GitHub
Open Graph Title: Update evalfr() to be consistent with MATLAB usage by murrayrm · Pull Request #179 · python-control/python-control
X Title: Update evalfr() to be consistent with MATLAB usage by murrayrm · Pull Request #179 · python-control/python-control
Description: This PR addresses issue #22, in which it was pointed out that the evalfr() method in the TransferFunction and StateSpace objects takes different arguments than the evalfr() function. Specifically, the evalfr method takes a real argument (the frequency at which you want to evaluate the frequency response) and the evalfr function takes a complex argument (consistent with MATLAB usage). This PR makes the following changes to the code base: Renamed evalfr() in the FRD, StateSpace and TransferFunction classes to _evalfr() and put a deprecation warning for use of the evalfr() method. Changed calls to evalfr() in frdata.py and margins.py to use _evalfr() Added unit tests for the the new methods + warnings These changes eliminate the inconsistency in the argument form between the (MATLAB compatible) evalfr() function and the evalfr() methods for LTI objects. The _evalfr() method retains the original functionality, since it is used for computing stability margins and for converting objects to FRD form.
Open Graph Description: This PR addresses issue #22, in which it was pointed out that the evalfr() method in the TransferFunction and StateSpace objects takes different arguments than the evalfr() function. Specifically,...
X Description: This PR addresses issue #22, in which it was pointed out that the evalfr() method in the TransferFunction and StateSpace objects takes different arguments than the evalfr() function. Specifically,...
Opengraph URL: https://github.com/python-control/python-control/pull/179
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d7ada650-c5d0-f4aa-e976-2b6d1f4e48f3 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DDF0:3CFE09:16259F9:1E1BA58:697A954A |
| html-safe-nonce | 743de125c45eef80afdc625489b75f83d617b8f08d62cb1e3ebfd726dae67812 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREYwOjNDRkUwOToxNjI1OUY5OjFFMUJBNTg6Njk3QTk1NEEiLCJ2aXNpdG9yX2lkIjoiODU4NzAxOTIyMTUwODcyNDA0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f15c72251298edab53c654b85372c34546a5240b1efa5e3f1888d224be03b7ca |
| hovercard-subject-tag | pull_request:161486910 |
| 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/179/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 #22, in which it was pointed out that the evalfr() method in the TransferFunction and StateSpace objects takes different arguments than the evalfr() function. Specifically,... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0912f2a9aa0160e08239520d461a4b4c4ce1caa972a8370b7442b94a38a194c5 |
| 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 | f8f5270c10a913bfa56f2dad4b864f1cda383754 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width