Skip to content

ValueError raised for certain systems with nyquist_response #1103

Closed

Description

@JanB1

For certain systems, when "indent_direction" is set to 'none', a ValueError is thrown on

count = int(np.round(encirclements, 0))
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).

Code to reproduce:

import sympy as smp
from control import tf, nyquist_response
s = tf('s')

tf1 = ((1 + 5/s)/(1 + 0.5/s))**2   # Double-Lag-Compensator

nyquist_response(tf1, warn_encirclements=False, indent_direction='none')

Activity

  1. linked a pull request that will close this issueAdd test for Nyquist evaluation at a pole #1104on Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions