diff options
author | jcorgan | 2007-11-27 20:06:08 +0000 |
---|---|---|
committer | jcorgan | 2007-11-27 20:06:08 +0000 |
commit | f845cd62f4bc202dc3c23a916a6699a1afb2f40d (patch) | |
tree | 91b42cdd1134de3a0cd619a5fb11d86fbe93e03e /gr-radio-astronomy/src/python/usrp_psr_receiver.py | |
parent | 0795ff1cc1f886c9749a4f95cd708190ec7eef20 (diff) | |
download | gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.tar.gz gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.tar.bz2 gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.zip |
Implements ticket:208
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7045 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src/python/usrp_psr_receiver.py')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_psr_receiver.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_psr_receiver.py b/gr-radio-astronomy/src/python/usrp_psr_receiver.py index 21b02127a..3937cb5ae 100755 --- a/gr-radio-astronomy/src/python/usrp_psr_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_psr_receiver.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2004,2005 Free Software Foundation, Inc. +# Copyright 2004,2005,2007 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -29,7 +29,7 @@ # and epoch folding analysis # # -from gnuradio import gr, gru, blks, audio +from gnuradio import gr, gru, blks2, audio from usrpm import usrp_dbid from gnuradio import usrp, optfir from gnuradio import eng_notation @@ -46,9 +46,9 @@ import os import math -class app_flow_graph(stdgui.gui_flow_graph): +class app_flow_graph(stdgui2.std_top_block): def __init__(self, frame, panel, vbox, argv): - stdgui.gui_flow_graph.__init__(self) + stdgui2.std_top_block.__init__(self) self.frame = frame self.panel = panel @@ -292,7 +292,7 @@ class app_flow_graph(stdgui.gui_flow_graph): # # Create the appropriate FFT scope # - self.scope = ra_fftsink.ra_fft_sink_f (self, panel, + self.scope = ra_fftsink.ra_fft_sink_f (panel, fft_size=int(options.fft_size), sample_rate=PULSAR_MAX_FREQ*2, title="Post-detector spectrum", ofunc=self.pulsarfunc, xydfunc=self.xydfunc, fft_rate=200) @@ -366,7 +366,7 @@ class app_flow_graph(stdgui.gui_flow_graph): self.folder_comb = gr.fft_filter_ccc(1,bogtaps) # Rational resampler - self.folder_rr = blks.rational_resampler_fff(self, self.interp, self.decim) + self.folder_rr = blks2.rational_resampler_fff(self.interp, self.decim) # Epoch folder bandpass bogtaps = Numeric.zeros(1, Numeric.Float64) |