I’m writing a custom sink block in Python with multiple input ports of
the same data type.
I’ve been reading Josh’s block coding guide, but I’m confused at one
The value returned by a block should be the number of items produced by
Is this to say that if I have multiple ports, I may return the value of
Or is it correct to say that I must return the sum of all
= range(number of input ports)?
I would like to create a synchronous block where all ports consume and
produce an equal number of items every time the work function is called.
However, it appears that there are times when input_items !=
input_items != … != input_items[numPorts-1]
If I were to return input_items, I would assume that this would not
yield the results I expect!
Any help is greatly appreciated!