summaryrefslogtreecommitdiff
path: root/gr-utils/src/python
diff options
context:
space:
mode:
authortrondeau2008-11-13 03:29:54 +0000
committertrondeau2008-11-13 03:29:54 +0000
commit4f8ca94b8375ff482f43a143c0055d583986e3bf (patch)
tree0228e63527ff723689107edffb7a6d1d5b4949c6 /gr-utils/src/python
parent3ea9636ef6cd7922c4490764795d0b5717563c70 (diff)
downloadgnuradio-4f8ca94b8375ff482f43a143c0055d583986e3bf.tar.gz
gnuradio-4f8ca94b8375ff482f43a143c0055d583986e3bf.tar.bz2
gnuradio-4f8ca94b8375ff482f43a143c0055d583986e3bf.zip
proper comparison of vectors; I thought I had already fixed this...
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9984 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src/python')
-rwxr-xr-xgr-utils/src/python/gr_plot_const.py2
-rwxr-xr-xgr-utils/src/python/gr_plot_fft.py2
-rwxr-xr-xgr-utils/src/python/gr_plot_psd.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gr-utils/src/python/gr_plot_const.py b/gr-utils/src/python/gr_plot_const.py
index 42c0260dc..355309955 100755
--- a/gr-utils/src/python/gr_plot_const.py
+++ b/gr-utils/src/python/gr_plot_const.py
@@ -140,7 +140,7 @@ class draw_constellation:
def zoom(self, event):
newxlim = self.sp_iq.get_xlim()
- if(newxlim != self.xlim):
+ if(newxlim.all() != self.xlim.all()):
self.xlim = newxlim
r = self.reals[int(ceil(self.xlim[0])) : int(ceil(self.xlim[1]))]
i = self.imags[int(ceil(self.xlim[0])) : int(ceil(self.xlim[1]))]
diff --git a/gr-utils/src/python/gr_plot_fft.py b/gr-utils/src/python/gr_plot_fft.py
index 69953f681..59a3f286b 100755
--- a/gr-utils/src/python/gr_plot_fft.py
+++ b/gr-utils/src/python/gr_plot_fft.py
@@ -165,7 +165,7 @@ class gr_plot_fft:
def zoom(self, event):
newxlim = self.sp_iq.get_xlim()
- if(newxlim != self.xlim):
+ if(newxlim.all() != self.xlim.all()):
self.xlim = newxlim
xmin = max(0, int(ceil(self.sample_rate*(self.xlim[0] - self.position))))
xmax = min(int(ceil(self.sample_rate*(self.xlim[1] - self.position))), len(self.iq))
diff --git a/gr-utils/src/python/gr_plot_psd.py b/gr-utils/src/python/gr_plot_psd.py
index b469d0cc8..669d7b573 100755
--- a/gr-utils/src/python/gr_plot_psd.py
+++ b/gr-utils/src/python/gr_plot_psd.py
@@ -188,7 +188,7 @@ class gr_plot_psd:
def zoom(self, event):
newxlim = self.sp_iq.get_xlim()
- if(newxlim != self.xlim):
+ if(newxlim.all() != self.xlim.all()):
self.xlim = newxlim
xmin = max(0, int(ceil(self.sample_rate*(self.xlim[0] - self.position))))
xmax = min(int(ceil(self.sample_rate*(self.xlim[1] - self.position))), len(self.iq))