summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorJohnathan Corgan2009-08-15 18:06:37 -0700
committerJohnathan Corgan2009-08-15 18:06:37 -0700
commitc9ad0211dac1721ec3f834bb14e71ca50e801721 (patch)
tree87bf55144ba6a6db15ff486165110c595ae842a3 /grc/python/Generator.py
parentea57c1b52b8bed12296ba51441afcfc57a0b9d34 (diff)
parent4edaf1e7fc05df0628c05785d5ede285a64670b0 (diff)
downloadgnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.tar.gz
gnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.tar.bz2
gnuradio-c9ad0211dac1721ec3f834bb14e71ca50e801721.zip
Merged changes from svn repository trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11601 221aa14e-8319-0410-a670-987f0aec2ac5 Signed-off-by: Johnathan Corgan <jcorgan@corganenterprises.com>
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 33be4a726..ed7995716 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -98,7 +98,8 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
#list of regular blocks (all blocks minus the special ones)
blocks = filter(lambda b: b not in (imports + parameters + variables + probes + notebooks), blocks) + probes
#list of connections where each endpoint is enabled
- connections = self._flow_graph.get_enabled_connections()
+ connections = filter(lambda c: not c.is_msg(), self._flow_graph.get_enabled_connections())
+ messages = filter(lambda c: c.is_msg(), self._flow_graph.get_enabled_connections())
#list of variable names
var_ids = [var.get_id() for var in parameters + variables]
#prepend self.
@@ -124,6 +125,7 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
'parameters': parameters,
'blocks': blocks,
'connections': connections,
+ 'messages': messages,
'generate_options': self._generate_options,
'var_id2cbs': var_id2cbs,
}