Title: IndexError: index -1 is out of bounds for axis 0 with size 0 · Issue #1014 · python-control/python-control · GitHub
Open Graph Title: IndexError: index -1 is out of bounds for axis 0 with size 0 · Issue #1014 · python-control/python-control
X Title: IndexError: index -1 is out of bounds for axis 0 with size 0 · Issue #1014 · python-control/python-control
Description: I get this: Traceback (most recent call last): File "C:\Users\me\PycharmProjects\f\control1.py", line 17, in
Open Graph Description: I get this: Traceback (most recent call last): File "C:\Users\me\PycharmProjects\f\control1.py", line 17, in
X Description: I get this: Traceback (most recent call last): File "C:\Users\me\PycharmProjects\f\control1.py", line 17, in <module> S = ct.step_info(sysdata=y_out2, T=T2) File "C:\Users\me\P...
Opengraph URL: https://github.com/python-control/python-control/issues/1014
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IndexError: index -1 is out of bounds for axis 0 with size 0","articleBody":"I get this:\r\n```\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\me\\PycharmProjects\\f\\control1.py\", line 17, in \u003cmodule\u003e\r\n S = ct.step_info(sysdata=y_out2, T=T2)\r\n File \"C:\\Users\\me\\PycharmProjects\\f\\venv\\lib\\site-packages\\control\\timeresp.py\", line 1614, in step_info\r\n settled = np.where(\r\nIndexError: index -1 is out of bounds for axis 0 with size 0\r\n```\r\nFrom this: (just a simple integrator TF)\r\n```python\r\nimport control as ct\r\nimport numpy as np\r\n\r\nnum = [0,5]\r\nden = [1,0]\r\n\r\nH = ct.TransferFunction(num, den)\r\n\r\nt = np.arange(start=0, stop=2, step=1/120)\r\n\r\nT2, y_out2 = ct.timeresp.impulse_response(sys=H, T=t)\r\npyplot.figure(1)\r\npyplot.plot(T2, y_out2)\r\npyplot.grid(True)\r\npyplot.show(block=False)\r\nS = ct.step_info(sysdata=y_out2, T=T2)\r\n\r\npyplot.show()\r\n```\r\n\r\nControl v0.10.0\r\nNumpy 1.26.4\r\nScipy 1.14.0","author":{"url":"https://github.com/NikolaiVChr","@type":"Person","name":"NikolaiVChr"},"datePublished":"2024-06-27T08:49:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1014/python-control/issues/1014"}
| 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:75fef6a7-90ec-7a47-9f8a-2a30ae10a642 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C810:2159A7:2B35E3:3A4C41:697AF29F |
| html-safe-nonce | 8f0731f2c46ed5904fcb429fb219426ad6e37d95c11ee461d80aebdceba76fa2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODEwOjIxNTlBNzoyQjM1RTM6M0E0QzQxOjY5N0FGMjlGIiwidmlzaXRvcl9pZCI6IjYzOTg4Mzk4NTIxNDEwNDg0NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 44f0b71f8b63b4a2e1125a058e21f8c60f6d0c2ca001250f1f2d39b12aa54637 |
| hovercard-subject-tag | issue:2377552418 |
| 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/1014/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f16680b150cfd3ac67c21c14ea2ae4b860c10abef4ff201e8b2b090a6ef8e73c/python-control/python-control/issues/1014 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f16680b150cfd3ac67c21c14ea2ae4b860c10abef4ff201e8b2b090a6ef8e73c/python-control/python-control/issues/1014 |
| og:image:alt | I get this: Traceback (most recent call last): File "C:\Users\me\PycharmProjects\f\control1.py", line 17, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NikolaiVChr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| 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 | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width