In the following GNU Radio processing block, I can't figure out who/what passes the value of input_items
to the work
function in the first place. Is it possible to pass that value to the __init__
function instead?
I have a file xyz.py :
class xyz(gr.sync_block):
"""
docstring for block add_python
"""
def __init__(self, parent, title, order):
gr.sync_block.__init__(self,
name="xyz",
in_sig=[numpy.float32,numpy.float32],
out_sig=None)
................
................
//I want to access the value of input_items here
...............
...............
def work(self, input_items, output_items):
................