Title: ValueError raised for certain systems with nyquist_response · Issue #1103 · python-control/python-control · GitHub
Open Graph Title: ValueError raised for certain systems with nyquist_response · Issue #1103 · python-control/python-control
X Title: ValueError raised for certain systems with nyquist_response · Issue #1103 · python-control/python-control
Description: For certain systems, when "indent_direction" is set to 'none', a ValueError is thrown on python-control/control/freqplot.py Line 1456 in 71bd731 count = int(np.round(encirclements, 0)) when there is an attempt at casting the number of en...
Open Graph Description: For certain systems, when "indent_direction" is set to 'none', a ValueError is thrown on python-control/control/freqplot.py Line 1456 in 71bd731 count = int(np.round(encirclements, 0)) when there i...
X Description: For certain systems, when "indent_direction" is set to 'none', a ValueError is thrown on python-control/control/freqplot.py Line 1456 in 71bd731 count = int(np.round(encirclements...
Opengraph URL: https://github.com/python-control/python-control/issues/1103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError raised for certain systems with nyquist_response","articleBody":"For certain systems, when \"indent_direction\" is set to 'none', a ValueError is thrown on https://github.com/python-control/python-control/blob/71bd7319fe324f7b7ff14b8210420843bf06d7d2/control/freqplot.py#L1456 when there is an attempt at casting the number of encirclements to an integer, but the number of encirclements is not a valid number (NaN).\n\nCode to reproduce:\n```Python\nimport sympy as smp\nfrom control import tf, nyquist_response\ns = tf('s')\n\ntf1 = ((1 + 5/s)/(1 + 0.5/s))**2 # Double-Lag-Compensator\n\nnyquist_response(tf1, warn_encirclements=False, indent_direction='none')\n```\n\n","author":{"url":"https://github.com/JanB1","@type":"Person","name":"JanB1"},"datePublished":"2025-01-27T08:19:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1103/python-control/issues/1103"}
| 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:f17b2c54-f42e-63c7-e694-44fb60c6e023 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90B6:41735:21CC8D0:2D56973:6979A1C7 |
| html-safe-nonce | 1567b7ff9a141bad94dc9faa6208626c4ea0d9aeb944a493823efe69c87e1e0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEI2OjQxNzM1OjIxQ0M4RDA6MkQ1Njk3Mzo2OTc5QTFDNyIsInZpc2l0b3JfaWQiOiIzODkxNzQ5OTkxMjkwMDg1ODMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0f1c386e577d699b47168bd8ecbef9d895761ef762949e49f14ea6bf99dcf76f |
| hovercard-subject-tag | issue:2812355283 |
| 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/1103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad6e7dc230aaeb5be7c5d3861d57ceed25a675a97f5a9f3f36ca95dbbfbce76d/python-control/python-control/issues/1103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad6e7dc230aaeb5be7c5d3861d57ceed25a675a97f5a9f3f36ca95dbbfbce76d/python-control/python-control/issues/1103 |
| og:image:alt | For certain systems, when "indent_direction" is set to 'none', a ValueError is thrown on python-control/control/freqplot.py Line 1456 in 71bd731 count = int(np.round(encirclements, 0)) when there i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JanB1 |
| 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