[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Fwd: how to make stream demux block in python
From:       Jeff Long <willcode4 () gmail ! com>
Date:       2022-12-11 12:27:24
Message-ID: CAC5f9jbhGviiQ0FmkBe0Tk3un8ay0JJXjT_MxbMnTD=YXn_RBA () mail ! gmail ! com
[Download RAW message or body]

There is a built-in Stream Demux block you could use. Do you specifically
need it to be in Python?

On Sun, Dec 11, 2022 at 1:33 AM Sumit Agrawal (P19EE207) <
agrawal.15@iitj.ac.in> wrote:

> Hi everyone,
> Can anyone tell me how to make a stream demuxing block to demultiplex one
> stream into N output streams?
>
> Demuxes a stream producing N outputs streams that contain n_0 items in the
> first stream, n_1 items in the second, etc., and repeats. Tags are
> propagated. The number of items in each output stream is specified using
> the lengths parameter like so [n_0, n_1, ..., n_N-1].
>
> Example:
> lengths = [2,3,4,5]
>
> input stream = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...]
> output_stream_0 = [0, 1, 14, 15, ...]
> output_stream_1 = [2, 3, 4, 16, ...]
> output_stream_2 = [5, 6, 7, 8, ...]
> output_stream_2 = [9, 10, 11, 12, 13 ...]
>
> --
>
>
>
>
> *Thanks & Regards,Sumit Kumar AgrawalPh.D. (Electrical Engineering)Indian
> Institute of TechnologyJodhpur, Rajasthan-342037*
> *Mob. No.- 8410957412*
> ᐧ
>

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">There is a \
built-in Stream Demux block you could use. Do you specifically need it to be in \
Python?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On \
Sun, Dec 11, 2022 at 1:33 AM Sumit Agrawal (P19EE207) &lt;<a \
href="mailto:agrawal.15@iitj.ac.in" target="_blank">agrawal.15@iitj.ac.in</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi \
everyone,  <div>Can anyone tell me how to make a stream<span \
style="color:rgb(32,33,34);font-family:sans-serif;font-size:14px">  demuxing block to \
demultiplex one stream into N output streams?</span><br><div><p style="margin:0.5em \
0px;color:rgb(32,33,34);font-family:sans-serif;font-size:14px">Demuxes a stream \
producing N outputs streams that contain n_0 items in the first stream, n_1 items in \
the second, etc., and repeats. Tags are propagated. The number of items in each \
output stream is specified using the  <tt \
style="font-family:monospace,monospace">lengths</tt>  parameter like so  <tt \
style="font-family:monospace,monospace">[n_0, n_1, ..., n_N-1]</tt>.</p><p \
style="margin:0.5em 0px;color:rgb(32,33,34);font-family:sans-serif;font-size:14px">Example:<br><tt \
style="font-family:monospace,monospace">lengths = [2,3,4,5]</tt></p><p \
style="margin:0.5em 0px;color:rgb(32,33,34);font-family:sans-serif;font-size:14px"><tt \
style="font-family:monospace,monospace">input stream = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \
10, 11, ...]<br>output_stream_0 = [0, 1, 14, 15, ...]<br>output_stream_1 = [2, 3, 4, \
16, ...]<br>output_stream_2 = [5, 6, 7, 8, ...]</tt></p></div><div><span \
style="color:rgb(32,33,34);font-family:monospace,monospace;font-size:14px">output_stream_2 \
= [9, 10, 11, 12, 13 ...]</span><br clear="all"><div><br></div>-- <br><div \
dir="ltr"><div dir="ltr"><i><font color="#444444"><b>Thanks &amp; Regards,<br>Sumit \
Kumar Agrawal<br>Ph.D. (Electrical Engineering)<br>Indian Institute of \
Technology<br>Jodhpur, Rajasthan-342037</b></font></i><div><div><div><i><font \
color="#444444"><b>Mob. No.- \
8410957412</b></font></i></div></div></div></div></div></div></div></div><div \
hspace="streak-pt-mark" style="max-height:1px"><img alt="" \
style="width:0px;max-height:0px;overflow:hidden" \
src="https://mailfoogae.appspot.com/t?sender=aYWdyYXdhbC4xNUBpaXRqLmFjLmlu&amp;type=zerocontent&amp;guid=102e258f-4e83-473b-b25d-8ce6fbeb0201"><font \
color="#ffffff" size="1">ᐧ</font></div> </blockquote></div>
</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic