Vectors for GNU Radio Python Blocks

Hi all,

How do I write the init section for a Python block with an complex input
vector of length v_len, so I need to adapt the following…

“def init(self, Nb, Ns, mapping, v_len):
gr.basic_block.init(self,
name=“Demodulator_relay_py_cd”,
in_sig=[numpy.complex64],
out_sig=[numpy.int32,numpy.uint8])?”

Thanks!

David


NOTE: The information in this email and any attachments may be
confidential and/or legally privileged. This message may be read, copied
and used only by the intended recipient. If you are not the intended
recipient, please destroy this message, delete any copies held on your
system and notify the sender immediately.

Toshiba Research Europe Limited, registered in England and Wales
(2519556). Registered Office 208 Cambridge Science Park, Milton Road,
Cambridge CB4 0GZ, England. Web: www.toshiba.eu/research/trl

Hi David,

in_sig=[(numpy.complex64,v_len)]

Greetings,
Marcus

PS: Because people might find this post later on: A point where this is
explained would be
http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python#323-Modifying-the-Python-Block-File