`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
No comments:
Post a Comment