We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601b581 commit dc8410cCopy full SHA for dc8410c
control/statesp.py
@@ -460,10 +460,10 @@ def freqresp(self, omega):
460
if isdtime(self, strict=True):
461
dt = timebase(self)
462
cmplx_freqs = exp(1.j * omega * dt)
463
- if ((omega * dt).any() > pi):
+ if ((omega * dt).any() > math.pi):
464
warn_message = ("evalfr: frequency evaluation"
465
" above Nyquist frequency")
466
- warnings.warn(warn_message)
+ warn(warn_message)
467
else:
468
cmplx_freqs = omega * 1.j
469
0 commit comments