summaryrefslogtreecommitdiff
path: root/grc/grc_gnuradio/blks2/error_rate.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/grc_gnuradio/blks2/error_rate.py')
-rw-r--r--grc/grc_gnuradio/blks2/error_rate.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/grc/grc_gnuradio/blks2/error_rate.py b/grc/grc_gnuradio/blks2/error_rate.py
index 9b2df58ef1..7f53f7af65 100644
--- a/grc/grc_gnuradio/blks2/error_rate.py
+++ b/grc/grc_gnuradio/blks2/error_rate.py
@@ -21,6 +21,7 @@
default_win_size = 1000
from gnuradio import gr
+from gnuradio import blocks
import gnuradio.gr.gr_threading as _threading
import numpy
@@ -62,9 +63,11 @@ class error_rate(gr.hier_block2):
def __init__(self, type='BER', win_size=default_win_size, bits_per_symbol=2):
"""
Error rate constructor.
- @param type a string 'BER' or 'SER'
- @param win_size the number of samples to calculate over
- @param bits_per_symbol the number of information bits per symbol (BER only)
+
+ Args:
+ type: a string 'BER' or 'SER'
+ win_size: the number of samples to calculate over
+ bits_per_symbol: the number of information bits per symbol (BER only)
"""
#init
gr.hier_block2.__init__(
@@ -80,7 +83,7 @@ class error_rate(gr.hier_block2):
self._msgq_source = msg_source.msgq()
msgq_sink = gr.msg_queue(2)
msg_sink = gr.message_sink(gr.sizeof_char, msgq_sink, False) #False -> blocking
- inter = gr.interleave(gr.sizeof_char)
+ inter = blocks.interleave(gr.sizeof_char)
#start thread
self._num_errs = 0
self._err_index = 0