diff options
author | Sreeraj Rajendran <rsreeraj@gmail.com> | 2015-03-23 14:40:18 -0700 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-03-23 14:40:18 -0700 |
commit | 913fb503001d78f6c2ec6f4a5ade701437e1c20c (patch) | |
tree | 938da57571602717d5ca11aa94fd469297ab327a | |
parent | f042e44d18c481e7e2ca37895afbd6ecf42061a3 (diff) |
gr_filter_design: Issue #749; Replaced pyqt4 imports with numpy ones.
-rw-r--r-- | gr-filter/python/filter/design/filter_design.py | 2 | ||||
-rw-r--r-- | gr-filter/python/filter/gui/polezero_plot.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gr-filter/python/filter/design/filter_design.py b/gr-filter/python/filter/design/filter_design.py index fe90681e34..f94b6b8340 100644 --- a/gr-filter/python/filter/design/filter_design.py +++ b/gr-filter/python/filter/design/filter_design.py @@ -1042,7 +1042,7 @@ class gr_plot_filter(QtGui.QMainWindow): w,h = signal.freqz(self.b,self.a) self.fftdB = 20 * scipy.log10 (abs(h)) self.freq = w/max(w) - self.fftDeg = scipy.unwrap(scipy.arctan2(imag(h),real(h))) + self.fftDeg = scipy.unwrap(scipy.arctan2(scipy.imag(h),scipy.real(h))) self.groupDelay = -scipy.diff(self.fftDeg) self.phaseDelay = -self.fftDeg[1:]/self.freq[1:] if self.gridview: diff --git a/gr-filter/python/filter/gui/polezero_plot.py b/gr-filter/python/filter/gui/polezero_plot.py index 839af0400d..8f35dc8d78 100644 --- a/gr-filter/python/filter/gui/polezero_plot.py +++ b/gr-filter/python/filter/gui/polezero_plot.py @@ -22,7 +22,10 @@ import sys from PyQt4 import Qt, QtCore from math import sin, cos, pi import PyQt4.Qwt5 as Qwt -from PyQt4.Qwt5.anynumpy import * +from numpy import zeros +from numpy import float as Float +from numpy import vectorize +from numpy import delete class PzPlot(Qwt.QwtPlot): @@ -531,4 +534,3 @@ class CanvasPicker(Qt.QObject): self.__showCursor(False) self.__selectedPoint = index self.__showCursor(True) - |