Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add test for Nyquist evaluation at a pole #1104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

murrayrm
Copy link
Member

This PR addresses #1103 by adding a check and raising an exception if the Nyquist contour includes a pole. In this case the Nyquist curve is not well defined and hence an exception is raised. (As noted in #1103, this case was already raising an exception, but not quite for the right reason.)

Unit test added that covers the situation.

@murrayrm murrayrm linked an issue Jan 28, 2025 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Jan 28, 2025

Coverage Status

coverage: 94.649% (+0.001%) from 94.648%
when pulling 65f5502 on murrayrm:fix-no_indent-27Jan2025
into 71bd731 on python-control:main.

@slivingston slivingston self-requested a review January 28, 2025 23:58
@slivingston slivingston merged commit 2f59e95 into python-control:main Jan 29, 2025
23 checks passed
@JanB1
Copy link

JanB1 commented Jan 29, 2025

I don't know if I should be humbled or offended that my example is now used as a test for "Throw an error if a user tries some stupid shit". But thanks for addressing the problem, I guess. XD

@murrayrm murrayrm added this to the 0.10.2 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError raised for certain systems with nyquist_response
4 participants