diff options
author | Josh Blum | 2012-11-20 19:59:29 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-20 19:59:29 -0800 |
commit | 92e20173fcb8bce1c7a704ff849d95a57a0f9885 (patch) | |
tree | 9e896b30b18ced4b131071e96261e7b3b6982ccc /python/gras/GRAS_Block.i | |
parent | 1018a24939885ca6eff6e0bf3977bbef18ae973f (diff) | |
download | sandhi-92e20173fcb8bce1c7a704ff849d95a57a0f9885.tar.gz sandhi-92e20173fcb8bce1c7a704ff849d95a57a0f9885.tar.bz2 sandhi-92e20173fcb8bce1c7a704ff849d95a57a0f9885.zip |
kludge around for python reference counting
Diffstat (limited to 'python/gras/GRAS_Block.i')
-rw-r--r-- | python/gras/GRAS_Block.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index 2aa1166..e5d112a 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -227,11 +227,15 @@ def YieldTagIter(iter): srcid=PMC2Py(t.srcid), ) +#FIXME major kludge for ref holding +blocks_ref_container = list() + class Block(BlockPython): def __init__(self, name='Block', in_sig=None, out_sig=None): BlockPython.__init__(self, name) self.set_input_signature(in_sig) self.set_output_signature(out_sig) + blocks_ref_container.append(self) def set_input_signature(self, sig): self.__in_sig = sig_to_dtype_sig(sig) |