René's URL Explorer Experiment


Title: new iosys.interconnect is great, but... · Issue #530 · python-control/python-control · GitHub

Open Graph Title: new iosys.interconnect is great, but... · Issue #530 · python-control/python-control

X Title: new iosys.interconnect is great, but... · Issue #530 · python-control/python-control

Description: The new naming functionality in iosys.interconnect function [1] has allowed me to create some very sophisticated systems much more easily than with append and connect. So far, no bugs that I have found. Very nice! a few remarks on usage:...

Open Graph Description: The new naming functionality in iosys.interconnect function [1] has allowed me to create some very sophisticated systems much more easily than with append and connect. So far, no bugs that I have f...

X Description: The new naming functionality in iosys.interconnect function [1] has allowed me to create some very sophisticated systems much more easily than with append and connect. So far, no bugs that I have f...

Opengraph URL: https://github.com/python-control/python-control/issues/530

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"new iosys.interconnect is great, but...","articleBody":"The new naming functionality in `iosys.interconnect` function [1] has allowed me to create some very sophisticated systems much more easily than with `append` and `connect`. So far, no bugs that I have found. Very nice!  \r\n\r\na few remarks on usage: \r\n* the `inplist` and `outlist` arguments are confusing and tricky. When you are writing code, its easy to forget shortened argument names like this: was it `outplist` or `outlist`? Also, they seem to exist to serve as a means to provide new names to the overall inputs and outputs. Is that a necessary feature? (might have to do with how system was set up for explicit interconnection) Possible to remove them and force the overall system to have the same input names and output names as constituent systems, and instead just provide `inputs` and `outputs` kwargs for `interconnect`? (edit: this is what matlab seems to do: https://www.mathworks.com/help/control/ref/connect.html)\r\n* auto-summing and auto-splitting, as suggested here: https://github.com/python-control/python-control/blob/master/doc/iosys.rst#automatic-connections-using-signal-names doesn't seem to work. For example, when I try to send the same signal `u` to both `sys1` and `sys2` in the following code a `ValueError: signal u is not unique` is raised:  \r\n```python\r\nsys1 = ct.tf(1, [10, 1])\r\nsys2 = ct.tf(1, [2, 1])\r\nsummer = ct.iosys.summing_junction(['y1', 'y2'], 'y')\r\nsys1 = ct.iosys.tf2io(sys1, inputs='u', outputs='y1')\r\nsys2 = ct.iosys.tf2io(sys2, inputs='u', outputs='y2')\r\nparallel = ct.interconnect((summer, sys1, sys2), inplist='u', outlist='y')\r\n```\r\n* similarly for auto-summing. the following raises `ValueError: signal y is not unique`:\r\n```python\r\nsplitter = ct.ss2io(ct.ss([], [], [], [[1],[1]]), inputs='u', outputs=('u1', 'u2'))\r\nsys1 = ct.iosys.tf2io(sys1, inputs='u1', outputs='y')\r\nsys2 = ct.iosys.tf2io(sys2, inputs='u2', outputs='y')\r\nparallel = ct.interconnect((splitter, sys1, sys2), inplist='u', outlist='y')\r\n```\r\n\r\nI don't know how hard these are to fix, it depends on how the underlying interconnection code works. One option would be to just modify the docs to remove mention of auto splitting and summing and add a helper splitter functoin: \r\n```python\r\ndef splitter(inputs, outputs):\r\n    D = np.ones((len(outputs),1))\r\n    C = np.zeros_like(D)\r\n    return io.ss2io(ct.ss(0, 0, C, D), inputs=inputs, outputs=outputs)\r\n```\r\n\r\n\r\n[1] https://github.com/python-control/python-control/blob/73f65dfe1dbf3ca9431a815769da42c52feb6169/control/iosys.py#L1850","author":{"url":"https://github.com/sawyerbfuller","@type":"Person","name":"sawyerbfuller"},"datePublished":"2021-02-03T21:12:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/530/python-control/issues/530"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cb0f8c2c-e8c0-7997-34f5-db2018bebfe8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC08:1F1E44:163E684:1F11412:697BA1EE
html-safe-nonceff58f5b95024578228de2e2648917b7404cf03962d090e5ee08ebc05132a2397
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzA4OjFGMUU0NDoxNjNFNjg0OjFGMTE0MTI6Njk3QkExRUUiLCJ2aXNpdG9yX2lkIjoiNzQwMTE3MDEzOTY3Mzc2NDMzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca77cf8ceeea9b02d250f03a409dadbb1e2741e228c02ccd443dd6008cc4c82fb
hovercard-subject-tagissue:800704529
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/530/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ce29379eee6ea7b636ab22a928c4fae5e89db894679f2d5dc875e90909253342/python-control/python-control/issues/530
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ce29379eee6ea7b636ab22a928c4fae5e89db894679f2d5dc875e90909253342/python-control/python-control/issues/530
og:image:altThe new naming functionality in iosys.interconnect function [1] has allowed me to create some very sophisticated systems much more easily than with append and connect. So far, no bugs that I have f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesawyerbfuller
hostnamegithub.com
expected-hostnamegithub.com
None7ba9ae7380317898f1b98f4cf41e78605ff2d68007cb4db4e46bdaf7e9423d2e
turbo-cache-controlno-preview
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released52dd9b71f0e5da9cfd694fb2faae78a81d8e46f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/issues/530#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F530
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F530
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/issues/530
Reloadhttps://github.com/python-control/python-control/issues/530
Reloadhttps://github.com/python-control/python-control/issues/530
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/530
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/530
#536https://github.com/python-control/python-control/pull/536
new iosys.interconnect is great, but...https://github.com/python-control/python-control/issues/530#top
#536https://github.com/python-control/python-control/pull/536
https://github.com/murrayrm
https://github.com/sawyerbfuller
https://github.com/sawyerbfuller
sawyerbfullerhttps://github.com/sawyerbfuller
on Feb 3, 2021https://github.com/python-control/python-control/issues/530#issue-800704529
https://www.mathworks.com/help/control/ref/connect.htmlhttps://www.mathworks.com/help/control/ref/connect.html
https://github.com/python-control/python-control/blob/master/doc/iosys.rst#automatic-connections-using-signal-nameshttps://github.com/python-control/python-control/blob/master/doc/iosys.rst#automatic-connections-using-signal-names
python-control/control/iosys.pyhttps://github.com/python-control/python-control/blob/73f65dfe1dbf3ca9431a815769da42c52feb6169/control/iosys.py#L1850
73f65dfhttps://github.com/python-control/python-control/commit/73f65dfe1dbf3ca9431a815769da42c52feb6169
murrayrmhttps://github.com/murrayrm
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.