【发布时间】:2015-06-06 03:12:18
【问题描述】:
在下面的 GNU Radio 处理块中,我无法弄清楚是谁/什么首先将 input_items 的值传递给了 work 函数。是否可以将该值传递给__init__ 函数?
我有一个文件 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):
................
【问题讨论】: