Increased FFT average upper limit to 3000, from 2000
authormleech <mleech@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 15 Mar 2007 17:36:36 +0000 (17:36 +0000)
committermleech <mleech@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 15 Mar 2007 17:36:36 +0000 (17:36 +0000)
Fixed type mistmatch in Numeric.zeros()

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4759 221aa14e-8319-0410-a670-987f0aec2ac5

gr-radio-astronomy/src/python/usrp_ra_receiver.py

index 2ecf946cba1a3bbfef3186982d344fa82a21df28..ceaf5caf6bc41c31e6f23d300840236cecef4aaa 100755 (executable)
@@ -189,14 +189,14 @@ class app_flow_graph(stdgui.gui_flow_graph):
         #
         self.fft_rate = options.fft_rate
 
-        self.fft_size = options.fft_size
+        self.fft_size = int(options.fft_size)
 
         # This buffer is used to remember the most-recent FFT display
         #   values.  Used later by self.write_spectral_data() to write
         #   spectral data to datalogging files, and by the SETI analysis
         #   function.
         #
-        self.fft_outbuf = Numeric.zeros(options.fft_size, Numeric.Float64)
+        self.fft_outbuf = Numeric.zeros(self.fft_size, Numeric.Float64)
 
         #
         # If SETI mode, only look at seti_fft_bandwidth (currently 12.5Khz)
@@ -485,7 +485,7 @@ class app_flow_graph(stdgui.gui_flow_graph):
 
         vbox2.Add((4,0), 0, 0)
         myform['average'] = form.slider_field(parent=self.panel, sizer=vbox2, 
-                    label="Spectral Averaging (FFT frames)", weight=1, min=1, max=2000, callback=self.set_averaging)
+                    label="Spectral Averaging (FFT frames)", weight=1, min=1, max=3000, callback=self.set_averaging)
 
         vbox2.Add((4,0), 0, 0)