Skip to content

ValueError raised for certain systems with nyquist_response #1103

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions