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:f285b814-60e2-bc95-157b-ccaf28e45092 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B15C:295F80:FC48F2:15C0482:697A8275 |
| html-safe-nonce | d3bc1077fa2fcafd38c92241e8e6e0f3feeace650440d68685ba7d1396c88f4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTVDOjI5NUY4MDpGQzQ4RjI6MTVDMDQ4Mjo2OTdBODI3NSIsInZpc2l0b3JfaWQiOiI1ODcyMzg1NzUwNzA0MTM0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a04b29b94903e3a2299177079dbf4c5caa75bbb8df619dca900339ed5aa05d03 |
| 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 | f6192227ebb08ae3d66e887f7363efea6f1ba29abe280990e1f6ad2d2962b6c8 |
| 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 | 7f58967b50cdccb4b617fbacac94376e17eef59e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width