Is a bug about stream_mux block?

Hi Experts,
As follow is my program to test stream_mux block. I found when
dat1_num+dat2_num > 8192, the result is wrong.
Is there something I have made a mistake?
My gnuradio version is v3.7.4git-35-g1092e685

#!/usr/bin/env python
from gnuradio import gr
from gnuradio import blocks
if name == ‘main’:
tb = gr.top_block ()
dat1_num = 3
dat2_num = 8191

    dat1 = [1] * dat1_num
    dat1_src = blocks.vector_source_f(dat1)

    dat2 = [2] * dat2_num
    dat2_src = blocks.vector_source_f(dat2)

    tmp_dat = dat1 + dat2
    tmp_dst = blocks.vector_sink_f()

    mux = blocks.stream_mux(gr.sizeof_float, (dat1_num, dat2_num))

    tb.connect((dat1_src, 0), (mux, 0))
    tb.connect((dat2_src, 0), (mux, 1))
    tb.connect(mux, tmp_dst)
    tb.run ()
    if (tuple(tmp_dat) == tmp_dst.data()):
        print "fine"
    else:
        print len(tmp_dst.data())


Thanks
Tiankun

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