From e7a634266fa2b406057b346adaa9a5efb7e479e2 Mon Sep 17 00:00:00 2001 From: jblum Date: Wed, 8 Oct 2008 05:18:19 +0000 Subject: probe function block git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9745 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/platforms/python/Generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'grc/src/platforms/python/Generator.py') 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 -- cgit