commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9984 - gnuradio/trunk/gr-utils/src/python


From: trondeau
Subject: [Commit-gnuradio] r9984 - gnuradio/trunk/gr-utils/src/python
Date: Wed, 12 Nov 2008 20:29:54 -0700 (MST)

Author: trondeau
Date: 2008-11-12 20:29:54 -0700 (Wed, 12 Nov 2008)
New Revision: 9984

Modified:
   gnuradio/trunk/gr-utils/src/python/gr_plot_const.py
   gnuradio/trunk/gr-utils/src/python/gr_plot_fft.py
   gnuradio/trunk/gr-utils/src/python/gr_plot_psd.py
Log:
proper comparison of vectors; I thought I had already fixed this...

Modified: gnuradio/trunk/gr-utils/src/python/gr_plot_const.py
===================================================================
--- gnuradio/trunk/gr-utils/src/python/gr_plot_const.py 2008-11-13 03:14:52 UTC 
(rev 9983)
+++ gnuradio/trunk/gr-utils/src/python/gr_plot_const.py 2008-11-13 03:29:54 UTC 
(rev 9984)
@@ -140,7 +140,7 @@
         
     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]))]

Modified: gnuradio/trunk/gr-utils/src/python/gr_plot_fft.py
===================================================================
--- gnuradio/trunk/gr-utils/src/python/gr_plot_fft.py   2008-11-13 03:14:52 UTC 
(rev 9983)
+++ gnuradio/trunk/gr-utils/src/python/gr_plot_fft.py   2008-11-13 03:29:54 UTC 
(rev 9984)
@@ -165,7 +165,7 @@
         
     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))

Modified: gnuradio/trunk/gr-utils/src/python/gr_plot_psd.py
===================================================================
--- gnuradio/trunk/gr-utils/src/python/gr_plot_psd.py   2008-11-13 03:14:52 UTC 
(rev 9983)
+++ gnuradio/trunk/gr-utils/src/python/gr_plot_psd.py   2008-11-13 03:29:54 UTC 
(rev 9984)
@@ -188,7 +188,7 @@
         
     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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]