Title: Sample code for ERA-OKID from UW is broken · Issue #847 · python-control/python-control · GitHub
Open Graph Title: Sample code for ERA-OKID from UW is broken · Issue #847 · python-control/python-control
X Title: Sample code for ERA-OKID from UW is broken · Issue #847 · python-control/python-control
Description: What is the issue? This code must have worked at one time but is now broken. Have no previous experience with it running correctly. Two issues related to: http://databookuw.com ... DATA DRIVEN SCIENCE & ENGINEERING ... CODE.zip + DATA.zi...
Open Graph Description: What is the issue? This code must have worked at one time but is now broken. Have no previous experience with it running correctly. Two issues related to: http://databookuw.com ... DATA DRIVEN SCIE...
X Description: What is the issue? This code must have worked at one time but is now broken. Have no previous experience with it running correctly. Two issues related to: http://databookuw.com ... DATA DRIVEN SCIE...
Opengraph URL: https://github.com/python-control/python-control/issues/847
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sample code for ERA-OKID from UW is broken","articleBody":"### What is the issue?\r\nThis code must have worked at one time but is now broken. Have no previous experience with it running correctly.\r\n\r\nTwo issues related to:\r\n\r\n- http://databookuw.com ... DATA DRIVEN SCIENCE \u0026 ENGINEERING ... CODE.zip + DATA.zip (PYTHON CODE)\r\n\r\nNotebook containing the broken code:\r\n\r\n- ```CH09_SEC03_ERA_OKID.ipynb```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Test on Python 3.10\r\n2. Run the notebook\r\n\r\n### Source changes to accommodate the failures\r\nThe following changes to the source were needed:\r\n**Issue 1. Slice assignment**\r\nChange \r\n ```yFull[:,:,qi],t = impulse(sysFull,T=tspan,input=qi)```\r\nto\r\n ```yFull[:,:,qi:qi+1],t = impulse(sysFull,T=tspan,input=qi)```\r\n\r\nChange\r\n ```y1[:,:,qi],t1 = impulse(sysFull,np.arange(200),input=qi)```\r\n ```y2[:,:,qi],t2 = impulse(sysERA,np.arange(100),input=qi)```\r\n ```y3[:,:,qi],t3 = impulse(sysERAOKID,np.arange(100),input=qi)```\r\nto\r\n ```y1[:,:,qi:qi+1],t1 = impulse(sysFull,np.arange(200),input=qi)```\r\n ```y2[:,:,qi:qi+1],t2 = impulse(sysERA,np.arange(100),input=qi)```\r\n ```y3[:,:,qi:qi+1],t3 = impulse(sysERAOKID,np.arange(100),input=qi)```\r\n\r\n**Issue 2. Invalid np array shape**\r\nChange\r\n ```yRandom = lsim(sysFull,uRandom,range(200))[0].T # Output```\r\nto\r\n ```yRandom = lsim(sysFull,uRandom.T,range(200))[0].T # Output```\r\n\r\n### Summary\r\nPotential root causes could be due to changes in this library or in changes to Python or both.","author":{"url":"https://github.com/RPellowski","@type":"Person","name":"RPellowski"},"datePublished":"2023-01-12T00:05:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/847/python-control/issues/847"}
| 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:f2dcf9b8-5461-065a-9d4f-3290a5f0d827 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE94:2914A6:292421D:37BA8C6:6979B860 |
| html-safe-nonce | 1a966992eecb101d4449286a6c7e8d69e5fe65abc0e40b4e061d76a02d7fc77e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTk0OjI5MTRBNjoyOTI0MjFEOjM3QkE4QzY6Njk3OUI4NjAiLCJ2aXNpdG9yX2lkIjoiMTc1NzMxOTg4NzA2ODk2OTA1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d73a450017c445a5a625722100d942d49aa75b1812a00b87033221530248ccb |
| hovercard-subject-tag | issue:1529892729 |
| 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/847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d68f19ebe8afbe8fb78684f93b181154ccb704a8a35738fd228c93499f573aec/python-control/python-control/issues/847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d68f19ebe8afbe8fb78684f93b181154ccb704a8a35738fd228c93499f573aec/python-control/python-control/issues/847 |
| og:image:alt | What is the issue? This code must have worked at one time but is now broken. Have no previous experience with it running correctly. Two issues related to: http://databookuw.com ... DATA DRIVEN SCIE... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RPellowski |
| hostname | github.com |
| expected-hostname | github.com |
| None | c049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4 |
| 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 | 87b137883e35e2766c3d0f6a257c4044f6390b83 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width