summaryrefslogtreecommitdiff
path: root/gr-digital/examples/ofdm/benchmark_rx.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/examples/ofdm/benchmark_rx.py')
-rwxr-xr-xgr-digital/examples/ofdm/benchmark_rx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-digital/examples/ofdm/benchmark_rx.py b/gr-digital/examples/ofdm/benchmark_rx.py
index f1b65276d0..740e0aed0e 100755
--- a/gr-digital/examples/ofdm/benchmark_rx.py
+++ b/gr-digital/examples/ofdm/benchmark_rx.py
@@ -25,6 +25,7 @@ from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
+from gnuradio import blocks
from gnuradio import digital
# from current dir
@@ -44,7 +45,7 @@ class my_top_block(gr.top_block):
options.spec, options.antenna,
options.verbose)
elif(options.from_file is not None):
- self.source = gr.file_source(gr.sizeof_gr_complex, options.from_file)
+ self.source = blocks.file_source(gr.sizeof_gr_complex, options.from_file)
else:
self.source = gr.null_source(gr.sizeof_gr_complex)