Skip to content

Commit 084e733

Browse files
authored
Merge pull request #250 from adm78/bugfix/truth-value-ambiguity-in-xferfcn-evalfr
Fixing bug in xferfcn._evalfr that caused ValueError for discrete systems
2 parents 85122fc + 8d64dd1 commit 084e733

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)