From dc8410c04bbd92ad9ed81eca5f17c2f63122d831 Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 19 Feb 2018 11:06:56 +0100 Subject: [PATCH] Added discrete grid to pzmap function. --- control/statesp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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