Skip to content

Commit 8d64dd1

Browse files
author
Andrew D. McGuire
committed
Fixing bug in xferfcn._evalfr that caused ValueError for discrete systems when list of angular frequencies contained more than one element
1 parent 4b0101c commit 8d64dd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control/xferfcn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _evalfr(self, omega):
510510
# Convert the frequency to discrete time
511511
dt = timebase(self)
512512
s = exp(1.j * omega * dt)
513-
if (omega * dt > pi):
513+
if np.any(omega * dt > pi):
514514
warn("_evalfr: frequency evaluation above Nyquist frequency")
515515
else:
516516
s = 1.j * omega

0 commit comments

Comments
 (0)