summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband/digital_bert_rx.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/examples/narrowband/digital_bert_rx.py')
-rwxr-xr-xgr-digital/examples/narrowband/digital_bert_rx.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-digital/examples/narrowband/digital_bert_rx.py b/gr-digital/examples/narrowband/digital_bert_rx.py
index cc66456e93..c04c76762f 100755
--- a/gr-digital/examples/narrowband/digital_bert_rx.py
+++ b/gr-digital/examples/narrowband/digital_bert_rx.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2008,2011 Free Software Foundation, Inc.
+# Copyright 2008,2011,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -27,6 +27,7 @@ import gnuradio.gr.gr_threading as _threading
import sys, time, math
from gnuradio import digital
+from gnuradio import blocks
# from current dir
from uhd_interface import uhd_receiver
@@ -124,9 +125,9 @@ class rx_psk_block(gr.top_block):
options.samples_per_symbol = self._source._sps
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)
+ self._source = blocks.null_source(gr.sizeof_gr_complex)
# Create the BERT receiver
self._receiver = bert_receiver(options.bitrate,