# Set input length for embedded python block in gnu radio

**URL:** <https://www.ruby-forum.com/t/set-input-length-for-embedded-python-block-in-gnu-radio/250932>\
**Category:** GNU Radio\
**Created:** [November 6, 2018, 2:09pm UTC](https://www.ruby-forum.com/t/set-input-length-for-embedded-python-block-in-gnu-radio/250932 "2018-11-06T14:09:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user123456789](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a88e57/32.png) [@user123456789](https://www.ruby-forum.com/u/user123456789)\
**Post date:** [November 6, 2018, 2:09pm UTC](https://www.ruby-forum.com/t/set-input-length-for-embedded-python-block-in-gnu-radio/250932/1 "2018-11-06T14:09:52Z")

</div>

Hello,  
I am having a "Stream to Vector " block which gives me 10 complex elements for another custom embedded block. How can I set the input type and length for my ambedded block to merge the size? I have already tried the official suggested method: in\_sig = [(np.complex64,10)] but it doesn’t work.  
Can someone post the entire code for the desired block, please?  
Thank you!

---

<div class="post-metadata">

**Author:** ![Sami1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e56c9b/32.png) [@Sami1](https://www.ruby-forum.com/u/Sami1)\
**Post date:** [November 10, 2018, 9:21am UTC](https://www.ruby-forum.com/t/set-input-length-for-embedded-python-block-in-gnu-radio/250932/2 "2018-11-10T09:21:21Z")

</div>

I think, you can use indirect way to do that. I mean two block streams to vector and vector to streams, try to have de-interleaver (stream operator)
