diff options
author | jcorgan | 2009-04-16 07:54:34 +0000 |
---|---|---|
committer | jcorgan | 2009-04-16 07:54:34 +0000 |
commit | 6556095628428156c790b1bd9be67dc3e4c0a797 (patch) | |
tree | a6a7ba667f03be27f0529f3f5ce1d10883c72c05 /gnuradio-examples | |
parent | fcc7d7047805520c987fbb4f503538eccd659f34 (diff) | |
download | gnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.tar.gz gnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.tar.bz2 gnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.zip |
Change our examples to use gr.channel_model instead of blks2.channel_model
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10861 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_loopback.py | 6 | ||||
-rwxr-xr-x | gnuradio-examples/python/ofdm/benchmark_ofdm.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gnuradio-examples/python/digital/benchmark_loopback.py b/gnuradio-examples/python/digital/benchmark_loopback.py index e46bbdeeb..51deba44c 100755 --- a/gnuradio-examples/python/digital/benchmark_loopback.py +++ b/gnuradio-examples/python/digital/benchmark_loopback.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright 2005, 2006, 2007, 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -20,7 +20,7 @@ # Boston, MA 02110-1301, USA. # -from gnuradio import gr, gru, modulation_utils, blks2 +from gnuradio import gr, gru, modulation_utils from gnuradio import eng_notation from gnuradio.eng_option import eng_option from optparse import OptionParser @@ -50,7 +50,7 @@ class my_top_block(gr.top_block): self.rxpath = receive_path(demod_class, rx_callback, options) if channelon: - self.channel = blks2.channel_model(noise_voltage, frequency_offset, 1.01) + self.channel = gr.channel_model(noise_voltage, frequency_offset, 1.01) if options.discontinuous: z = 20000*[0,] diff --git a/gnuradio-examples/python/ofdm/benchmark_ofdm.py b/gnuradio-examples/python/ofdm/benchmark_ofdm.py index 5861da16c..6d6ca9f2a 100755 --- a/gnuradio-examples/python/ofdm/benchmark_ofdm.py +++ b/gnuradio-examples/python/ofdm/benchmark_ofdm.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2006, 2007 Free Software Foundation, Inc. +# Copyright 2006, 2007, 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -71,8 +71,8 @@ class my_top_block(gr.top_block): #self.mux = gr.stream_mux(gr.sizeof_gr_complex, stream_size) self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate) - self.channel = blks2.channel_model(noise_voltage, frequency_offset, - options.clockrate_ratio, taps) + self.channel = gr.channel_model(noise_voltage, frequency_offset, + options.clockrate_ratio, taps) self.rxpath = receive_path(callback, options) #self.connect(self.zeros, (self.mux,0)) |