Title: InterconnectedSystem changing the system name if signal is mistyped · Issue #897 · python-control/python-control · GitHub
Open Graph Title: InterconnectedSystem changing the system name if signal is mistyped · Issue #897 · python-control/python-control
X Title: InterconnectedSystem changing the system name if signal is mistyped · Issue #897 · python-control/python-control
Description: Let's say I have an InterconnectedSystem as follows: ct.interconnect( [ ct.rss(name='a', inputs=('u0'), outputs=('y0'), strictly_proper=True), ct.rss(name='b', inputs=('u0','u1'), outputs=('y0','y1'), strictly_proper=True), ], name='ab',...
Open Graph Description: Let's say I have an InterconnectedSystem as follows: ct.interconnect( [ ct.rss(name='a', inputs=('u0'), outputs=('y0'), strictly_proper=True), ct.rss(name='b', inputs=('u0','u1'), outputs=('y0','y1...
X Description: Let's say I have an InterconnectedSystem as follows: ct.interconnect( [ ct.rss(name='a', inputs=('u0'), outputs=('y0'), strictly_proper=True), ct.rss(name='b', i...
Opengraph URL: https://github.com/python-control/python-control/issues/897
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"InterconnectedSystem changing the system name if signal is mistyped","articleBody":"Let's say I have an InterconnectedSystem as follows:\r\n\r\n```Python\r\nct.interconnect(\r\n [\r\n ct.rss(name='a', inputs=('u0'), outputs=('y0'), strictly_proper=True),\r\n ct.rss(name='b', inputs=('u0','u1'), outputs=('y0','y1'), strictly_proper=True),\r\n ],\r\n name='ab',\r\n connections=(\r\n ['b.u0', 'a.y0'],\r\n ),\r\n inputs=(\r\n 'b.u0', 'b.u1',\r\n ),\r\n outputs=(\r\n 'b.y0','b.y1',\r\n )\r\n)\r\n```\r\n\r\nIts `.__dict__` is:\r\n```Python\r\n{'name': 'ab', # \u003c\u003c\u003c\u003c\u003c Note the correct name here\r\n 'ninputs': 2,\r\n 'input_index': {'a.u0': 0, 'b.u1': 1},\r\n 'noutputs': 2,\r\n 'output_index': {'b.y0': 0, 'b.y1': 1},\r\n 'nstates': 2,\r\n 'state_index': {'a_x[0]': 0, 'b_x[0]': 1},\r\n 'dt': 0,\r\n 'params': {},\r\n 'syslist': [\u003cLinearIOSystem:a:['u0']-\u003e['y0']\u003e,\r\n \u003cLinearIOSystem:b:['u0', 'u1']-\u003e['y0', 'y1']\u003e],\r\n 'syslist_index': {'a': 0, 'b': 1},\r\n 'state_offset': [0, 1],\r\n 'input_offset': [0, 1],\r\n 'output_offset': [0, 1],\r\n 'connect_map': array([[0., 0., 0.],\r\n [1., 0., 0.],\r\n [0., 0., 0.]]),\r\n 'input_map': array([[1., 0.],\r\n [1., 0.],\r\n [0., 1.]]),\r\n 'output_map': array([[0., 1., 0., 0., 0., 0.],\r\n [0., 0., 1., 0., 0., 0.]]),\r\n 'A': array([[-0.52126004, 0. ],\r\n [ 0. , -1.05433024]]),\r\n 'B': array([[-0.88399486, 0. ],\r\n [ 0. , 0.64167349]]),\r\n 'C': array([[0. , 0. ],\r\n [0. , 0.7629647]]),\r\n 'D': array([[0., 0.],\r\n [0., 0.]])}\r\n```\r\n\r\nIf I mistype an input, say `a.a0` to `a0`, it weirdly changes the name of the resulting InterconnectedSystem to `a0`, which sounds like a bug:\r\n```Python\r\n{'name': 'u0', # \u003c\u003c\u003c\u003c\u003c Now, the name is wrong!\r\n 'ninputs': 2,\r\n 'input_index': {'u0': 0, 'b.u1': 1},\r\n 'noutputs': 2,\r\n 'output_index': {'b.y0': 0, 'b.y1': 1},\r\n 'nstates': 2,\r\n 'state_index': {'a_x[0]': 0, 'b_x[0]': 1},\r\n 'dt': 0,\r\n 'params': {},\r\n 'syslist': [\u003cLinearIOSystem:a:['u0']-\u003e['y0']\u003e,\r\n \u003cLinearIOSystem:b:['u0', 'u1']-\u003e['y0', 'y1']\u003e],\r\n 'syslist_index': {'a': 0, 'b': 1},\r\n 'state_offset': [0, 1],\r\n 'input_offset': [0, 1],\r\n 'output_offset': [0, 1],\r\n 'connect_map': array([[0., 0., 0.],\r\n [1., 0., 0.],\r\n [0., 0., 0.]]),\r\n 'input_map': array([[1., 0.],\r\n [1., 0.],\r\n [0., 1.]]),\r\n 'output_map': array([[0., 1., 0., 0., 0., 0.],\r\n [0., 0., 1., 0., 0., 0.]]),\r\n 'A': array([[-0.52126004, 0. ],\r\n [ 0. , -1.05433024]]),\r\n 'B': array([[-0.88399486, 0. ],\r\n [ 0. , 0.64167349]]),\r\n 'C': array([[0. , 0. ],\r\n [0. , 0.7629647]]),\r\n 'D': array([[0., 0.],\r\n [0., 0.]])}\r\n```\r\n\r\nThanks","author":{"url":"https://github.com/joaoantoniocardoso","@type":"Person","name":"joaoantoniocardoso"},"datePublished":"2023-05-25T04:21:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/897/python-control/issues/897"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9fbd6149-04b9-a140-ff8b-81c8484b8543 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAE8:2DE4CC:6FFDDA:9AE4BB:697A6A31 |
| html-safe-nonce | 7e77bda1d30cad14958f8c4fb774dee3b98422e9b56ac13918093423437df831 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUU4OjJERTRDQzo2RkZEREE6OUFFNEJCOjY5N0E2QTMxIiwidmlzaXRvcl9pZCI6IjQ5ODQyNjM4Njc1MDU0NzAwMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cb54960a8a164fba8dcdeb697583ea1a278152419e0b8514bf5e821fb4a4140b |
| hovercard-subject-tag | issue:1725061043 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python-control/python-control/897/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f63c34cc4675520acb58b12c6da573832e8e441dd253de4b2b519b3f14244e2/python-control/python-control/issues/897 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f63c34cc4675520acb58b12c6da573832e8e441dd253de4b2b519b3f14244e2/python-control/python-control/issues/897 |
| og:image:alt | Let's say I have an InterconnectedSystem as follows: ct.interconnect( [ ct.rss(name='a', inputs=('u0'), outputs=('y0'), strictly_proper=True), ct.rss(name='b', inputs=('u0','u1'), outputs=('y0','y1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joaoantoniocardoso |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4f4c032790588250388c2e36a0e1ea776c0a3f887d37d994e1ac3d7ea79d34ef |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06b3a5a9a6214e1e06e508d250d778cbaf17c577 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width