summaryrefslogtreecommitdiff
path: root/grc/src/platforms/python/Generator.py
diff options
context:
space:
mode:
authorjblum2008-10-08 05:18:19 +0000
committerjblum2008-10-08 05:18:19 +0000
commite7a634266fa2b406057b346adaa9a5efb7e479e2 (patch)
tree7e02414f5ea7cfe21796bd16a5020b8d013df2ec /grc/src/platforms/python/Generator.py
parent4df03f7bb6c99bb22f41d21e6c65c1b41e00ff05 (diff)
downloadgnuradio-e7a634266fa2b406057b346adaa9a5efb7e479e2.tar.gz
gnuradio-e7a634266fa2b406057b346adaa9a5efb7e479e2.tar.bz2
gnuradio-e7a634266fa2b406057b346adaa9a5efb7e479e2.zip
probe function block
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9745 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/python/Generator.py')
-rw-r--r--grc/src/platforms/python/Generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/src/platforms/python/Generator.py b/grc/src/platforms/python/Generator.py
index bd3d69cc2..7879fdfc0 100644
--- a/grc/src/platforms/python/Generator.py
+++ b/grc/src/platforms/python/Generator.py
@@ -81,7 +81,8 @@ class Generator(object):
controls = filter(lambda v: v.get_key().startswith('variable_'), variables)
#list of blocks not including variables and imports and parameters and disabled
blocks = sorted(self._flow_graph.get_enabled_blocks(), lambda x, y: cmp(x.get_id(), y.get_id()))
- blocks = filter(lambda b: b not in (imports + parameters + variables), blocks)
+ probes = filter(lambda b: b.get_key().startswith('probe_'), blocks) #ensure probes are last in the block list
+ blocks = filter(lambda b: b not in (imports + parameters + variables + probes), blocks) + probes
#list of connections where each endpoint is enabled
connections = self._flow_graph.get_enabled_connections()
#list of variable names