From 4f8ca94b8375ff482f43a143c0055d583986e3bf Mon Sep 17 00:00:00 2001 From: trondeau Date: Thu, 13 Nov 2008 03:29:54 +0000 Subject: [PATCH] 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 --- gr-utils/src/python/gr_plot_const.py | 2 +- gr-utils/src/python/gr_plot_fft.py | 2 +- gr-utils/src/python/gr_plot_psd.py | 2 +- 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 42c0260d..35530995 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 69953f68..59a3f286 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 b469d0cc..669d7b57 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)) -- 2.30.2