I'm a little confused; as far as I know, hier_block2s don't allow you to set a variable range of in/outputs. Thus, initialization via a hier_block2.__init__ call must set definite io_signatures, and you can get them using .input_signature() / .output_signature()
def __init__(self, in_sig, out_sig):
gr.hier_block2.__init__(self,
"iosig_wise",
in_sig, out_sig)
Now, since that signature is hard-coded, I don't really see the case where the runtime iosigs would differ from these set at initialization, but I'm not sure I'm not missing something.
But that's a little theoretical, so let's talk about something specific; does [1]'s python/qa_iosig_wise.py achieve what you would want to have?
Greetings,
Marcus
[1]https://github.com/marcusmueller/gr-scrap_iosig
On 02.08.2014 02:05, John Malsbury wrote:
Is there, or will there ever be a method to read back the io_signature of a heir block in python? I'd like to do some pythonic stuff to easily wrap multiple hier blocks in a number of separate flowgraphs without requiring the developer to specify the io signature of each block. -John PS - I'm very sorry for using the word "pythonic".
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment