Thursday, October 24, 2013

[Discuss-gnuradio] Problem with error_rate block?

I was trying to use the error_rate block tonight, and noticed it seems to
be throwing an error related to blocks.message_from_string.  The
following change to error_rate.py seems to have fixed the issue:

diff error_rate.py error_rate.py-orig 
116c116
<         msg = gr.message_from_string(arr.tostring(), 0, gr.sizeof_float, num)
---
>         msg = blocks.message_from_string(arr.tostring(), 0, gr.sizeof_float, num)
139c139
<         msg = gr.message_from_string(arr.tostring(), 0, gr.sizeof_float, num)
---
>         msg = blocks.message_from_string(arr.tostring(), 0, gr.sizeof_float, num)

Just passing this along, if anyone runs into the same problem.

Rick

No comments:

Post a Comment