diff options
author | Josh Blum | 2013-01-13 17:28:01 -0800 |
---|---|---|
committer | Josh Blum | 2013-01-13 17:28:01 -0800 |
commit | b383c4ec3fe6c5f2bbace2f529760b91b77122ef (patch) | |
tree | 318abc1ec2565542f4667463474deed8c01085b9 /gnuradio-core/src/python | |
parent | e826097e09fdfb04d14bf87861646b88229db881 (diff) | |
download | gnuradio-b383c4ec3fe6c5f2bbace2f529760b91b77122ef.tar.gz gnuradio-b383c4ec3fe6c5f2bbace2f529760b91b77122ef.tar.bz2 gnuradio-b383c4ec3fe6c5f2bbace2f529760b91b77122ef.zip |
gras: fixed the misc issues w/ gr python block
There was an bug in the get_tags_in_range impl, found incidentally.
Just a little swig + python misc changes.
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r-- | gnuradio-core/src/python/gnuradio/gr/__init__.py | 2 | ||||
-rw-r--r-- | gnuradio-core/src/python/gnuradio/gr/gateway.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py index d88c1b842..66d57f77a 100644 --- a/gnuradio-core/src/python/gnuradio/gr/__init__.py +++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py @@ -28,7 +28,7 @@ from gnuradio_core import * from exceptions import * #from hier_block2 import * #from top_block import * -#from gateway import basic_block, sync_block, decim_block, interp_block +from gateway import basic_block, sync_block, decim_block, interp_block from gras import HierBlock as hier_block2 from gras import TopBlock as top_block diff --git a/gnuradio-core/src/python/gnuradio/gr/gateway.py b/gnuradio-core/src/python/gnuradio/gr/gateway.py index 244b8b592..ad99804d1 100644 --- a/gnuradio-core/src/python/gnuradio/gr/gateway.py +++ b/gnuradio-core/src/python/gnuradio/gr/gateway.py @@ -97,6 +97,9 @@ class gateway_block(object): setattr(self, attr.replace(prefix, ''), getattr(self.__gateway, attr)) self.pop_msg_queue = lambda: gr_core.gr_block_gw_pop_msg_queue_safe(self.__gateway) + #gras version of the to_basic_block() + def shared_to_element(self): return self.__gateway.shared_to_element() + def to_basic_block(self): """ Makes this block connectable by hier/top block python |