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


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs