diff --git a/control/statesp.py b/control/statesp.py index bff14d241..62c5f617f 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -460,10 +460,10 @@ def freqresp(self, omega): if isdtime(self, strict=True): dt = timebase(self) cmplx_freqs = exp(1.j * omega * dt) - if ((omega * dt).any() > pi): + if ((omega * dt).any() > math.pi): warn_message = ("evalfr: frequency evaluation" " above Nyquist frequency") - warnings.warn(warn_message) + warn(warn_message) else: cmplx_freqs = omega * 1.j