discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set variable number of inputs/outputs in Python OOT modules


From: Jeff Long
Subject: Re: How to set variable number of inputs/outputs in Python OOT modules
Date: Wed, 3 Feb 2021 15:56:48 -0500

`gr.io_signature()` in Python works exactly the same as it does in C++. The legacy Python way (list of types) is still used in most places, but you have the option.

On Wed, Feb 3, 2021 at 3:17 PM George Edwards <gedwards.eng@gmail.com> wrote:
Hello,

I wish to build an OOT module in Python which can take a variable number of inputs and outputs. In C++ OOT, there are the io signatures <+min_in+>,  <+max_in+>, etc. which can be set to 1 and -1 to mean the input can be any number. Python does not have these, it has the in_sig and out_sig which do not offer the flexibility as the C++ OOT. How can I get a variable number of inputs/outputs that is user defined in a Python OOT?

Also, how do I set the parameters in yml file for variable inputs and outputs?

I will appreciate any help.

Thank you!

Regards,
George 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]