Title: fix issue with multiplying MIMO LTI system by scalar by murrayrm · Pull Request #1078 · python-control/python-control · GitHub
Open Graph Title: fix issue with multiplying MIMO LTI system by scalar by murrayrm · Pull Request #1078 · python-control/python-control
X Title: fix issue with multiplying MIMO LTI system by scalar by murrayrm · Pull Request #1078 · python-control/python-control
Description: This PR addresses #1075 and also fixes a small bug with constant FRD systems with small numbers of frequency points. Changes: Multiplying (*), adding (+), or subtracting (-) a constant from any (MIMO) LTI object now acts element-wise (same as ndarray's). This fixes a bug where multiplying a MIMO LTI system by a constant was multiplying by a matrix filled with the constant rather than a diagonal matrix (scaled identity). Specifying an FRD system with fewer than 4 frequency points was generating an error because the default settings try to set up a smooth (interpolating) response and the default degree of the fit was 3. The SciPy interpolation function requires k+1 data points for a degree k fit, so an exception was generated. Added unit tests that catch the bug in #1075 but also check across all LTI system representations (frd, ss, tf).
Open Graph Description: This PR addresses #1075 and also fixes a small bug with constant FRD systems with small numbers of frequency points. Changes: Multiplying (*), adding (+), or subtracting (-) a constant from any (M...
X Description: This PR addresses #1075 and also fixes a small bug with constant FRD systems with small numbers of frequency points. Changes: Multiplying (*), adding (+), or subtracting (-) a constant from any (M...
Opengraph URL: https://github.com/python-control/python-control/pull/1078
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8d276047-db44-dba4-5050-ef9c7f13b8bc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 844E:1F49F6:2397230:2FDEBFD:697AC6CF |
| html-safe-nonce | 745d89affa17449363f9311e4cda0186dd04974ae6ac68588cca11e4cf27cb02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDRFOjFGNDlGNjoyMzk3MjMwOjJGREVCRkQ6Njk3QUM2Q0YiLCJ2aXNpdG9yX2lkIjoiNTE2NDA4ODgzNTMxNDQ2ODU1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f069200a0ee122851be1179faf2919e3eb8f572f8a788c2b38c5cb174cf5780b |
| hovercard-subject-tag | pull_request:2221150605 |
| 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/1078/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 #1075 and also fixes a small bug with constant FRD systems with small numbers of frequency points. Changes: Multiplying (*), adding (+), or subtracting (-) a constant from any (M... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a |
| 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 | 353b231ffaec2de44db15b2e82887804ede7c21e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width