René's URL Explorer Experiment


Title: Bug: Incorrect ValueError: incompatible timebases · Issue #754 · python-control/python-control · GitHub

Open Graph Title: Bug: Incorrect ValueError: incompatible timebases · Issue #754 · python-control/python-control

X Title: Bug: Incorrect ValueError: incompatible timebases · Issue #754 · python-control/python-control

Description: Using control.series to connect several discrete state-space systems, all with dt=0.05, is resulting in "ValueError:Systems have incompatible timebases" from "common_timebase" in namedio.py line 340 in release 0.9.2. File "/usr/local/ana...

Open Graph Description: Using control.series to connect several discrete state-space systems, all with dt=0.05, is resulting in "ValueError:Systems have incompatible timebases" from "common_timebase" in namedio.py line 34...

X Description: Using control.series to connect several discrete state-space systems, all with dt=0.05, is resulting in "ValueError:Systems have incompatible timebases" from "common_timebase" i...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Incorrect ValueError: incompatible timebases","articleBody":"Using control.series to connect several discrete state-space systems, all with dt=0.05, is resulting in \"ValueError:Systems have incompatible timebases\" from \"common_timebase\" in namedio.py line 340 in release 0.9.2.  \r\n\r\n\u003e File \"/usr/local/anaconda3/envs/c/lib/python3.9/site-packages/control/bdalg.py\", line 108, in series return reduce(lambda x, y:y*x, sysn, sys1)\r\n\u003e \r\n\u003e   File \"/usr/local/anaconda3/envs/c/lib/python3.9/site-packages/control/bdalg.py\", line 108, in \u003clambda\u003e return reduce(lambda x, y:y*x, sysn, sys1)\r\n\u003e \r\n\u003e   File \"/usr/local/anaconda3/envs/c/lib/python3.9/site-packages/control/iosys.py\", line 184, in __mul__ newsys = InterconnectedSystem(\r\n\u003e \r\n\u003e   File \"/usr/local/anaconda3/envs/c/lib/python3.9/site-packages/control/iosys.py\", line 895, in __init__ dt = common_timebase(dt, sys.dt)\r\n\u003e \r\n\u003e   File \"/usr/local/anaconda3/envs/c/lib/python3.9/site-packages/control/namedio.py\", line 340, in common_timebase raise ValueError(\"Systems have incompatible timebases\")\r\n\u003e \r\n\u003e ValueError: Systems have incompatible timebases\r\n\r\nIn my case, the calling function __init__ in iosys.py, line 895 is initializing \"dt\" as 0 from the global default then passing this as the first arg to common_timebase, while the second arg is the sys.dt from the first system in the list of systems being combined.  This results in the ValueError.  All systems in syslist have dt = 0.05 and pass common_timebase with each other when passed as args manually while stopped in debugger.\r\n\r\nIt seems like the intent for the object __init__ functions in this module is probably that dt should be initialized as the dt of the first system in the syslist, but that is not what the code is doing.\r\n\r\nAs a work-around, running the same script with release 0.9.1 works.","author":{"url":"https://github.com/dc5048","@type":"Person","name":"dc5048"},"datePublished":"2022-08-02T23:08:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/754/python-control/issues/754"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e8a88802-7b1f-50e5-5c02-570f1d566573
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0CA:2B276C:2309599:2F6972C:6979A0FB
html-safe-noncec47397801ce1084d0fd297fbcd3fbed4a0c219472a97a70f2b2588c1e1f574b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMENBOjJCMjc2QzoyMzA5NTk5OjJGNjk3MkM6Njk3OUEwRkIiLCJ2aXNpdG9yX2lkIjoiNjU0MDkwNTQ4MTgyMzE2NjcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac51499c28c0613a1577c9644adac4c775d0d05a56fc1484c157150b16b18d8ddd
hovercard-subject-tagissue:1326489268
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/754/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b832e1883490e232a15c6df4060ad8be6ad71f048e2473eeb0cafd3a341ec3d0/python-control/python-control/issues/754
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b832e1883490e232a15c6df4060ad8be6ad71f048e2473eeb0cafd3a341ec3d0/python-control/python-control/issues/754
og:image:altUsing control.series to connect several discrete state-space systems, all with dt=0.05, is resulting in "ValueError:Systems have incompatible timebases" from "common_timebase" in namedio.py line 34...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedc5048
hostnamegithub.com
expected-hostnamegithub.com
Nonec049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4
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
release87b137883e35e2766c3d0f6a257c4044f6390b83
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/issues/754#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F754
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%2F754
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/754
Reloadhttps://github.com/python-control/python-control/issues/754
Reloadhttps://github.com/python-control/python-control/issues/754
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/754
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/754
Bug: Incorrect ValueError: incompatible timebaseshttps://github.com/python-control/python-control/issues/754#top
https://github.com/murrayrm
bughttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/dc5048
https://github.com/dc5048
dc5048https://github.com/dc5048
on Aug 2, 2022https://github.com/python-control/python-control/issues/754#issue-1326489268
murrayrmhttps://github.com/murrayrm
bughttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22bug%22
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.