diff options
author | Josh Blum | 2012-11-30 23:33:57 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-30 23:33:57 -0800 |
commit | f4d7bf791d677cbff05c8ee12fe1d3b5a922373f (patch) | |
tree | 5d062b0c652d474b0e282689ee3a101eea649f1d /python/gras | |
parent | 0dea1563a4e13bd6081acc2ed5f4c611bdfbb9af (diff) | |
download | sandhi-f4d7bf791d677cbff05c8ee12fe1d3b5a922373f.tar.gz sandhi-f4d7bf791d677cbff05c8ee12fe1d3b5a922373f.tar.bz2 sandhi-f4d7bf791d677cbff05c8ee12fe1d3b5a922373f.zip |
messing w/ pop_input_msg call
Diffstat (limited to 'python/gras')
-rw-r--r-- | python/gras/GRAS_Block.i | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index 8c7ab0e..46f04e2 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -197,11 +197,12 @@ def sig_to_dtype_sig(sig): Tag__ = Tag class Tag(object): - def __init__(self, offset=0, key=None, value=None, srcid=None): + def __init__(self, offset=0, key=None, value=None, srcid=None, tag=None): self.offset = offset self.key = key self.value = value self.srcid = srcid + self.tag = tag def YieldTagIter(iter): for t in iter: yield Tag( @@ -209,6 +210,7 @@ def YieldTagIter(iter): key=PMC2Py(t.key), value=PMC2Py(t.value), srcid=PMC2Py(t.srcid), + tag=t, ) #FIXME major kludge for ref holding @@ -310,4 +312,7 @@ class Block(BlockPython): t.offset += self.get_produced(o) self.post_output_tag(o, t) + def pop_input_msg(self, which_input): + return list(YieldTagIter([BlockPython.pop_input_msg(self, which_input)]))[0] + %} |