[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/05: gr_filter_design: Issue #749; Replac
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/05: gr_filter_design: Issue #749; Replaced pyqt4 imports with numpy ones. |
Date: |
Sun, 29 Mar 2015 01:19:01 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 913fb503001d78f6c2ec6f4a5ade701437e1c20c
Author: Sreeraj Rajendran <address@hidden>
Date: Mon Mar 23 14:40:18 2015 -0700
gr_filter_design: Issue #749; Replaced pyqt4 imports with numpy ones.
---
gr-filter/python/filter/design/filter_design.py | 2 +-
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 fe90681..f94b6b8 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 839af04..8f35dc8 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)
-