X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=grc%2Fpython%2FGenerator.py;fp=grc%2Fpython%2FGenerator.py;h=ed7995716f1ecde6e25c5b433703f8708216c5ca;hb=0a73facce3ce4eba23676df5f22f222df319ed87;hp=33be4a72615e8c6a053e6a87f8de76dd8a75029f;hpb=0af1c2c7ab2ac28c9518c9348f8245326bd7ac46;p=debian%2Fgnuradio diff --git a/grc/python/Generator.py b/grc/python/Generator.py index 33be4a72..ed799571 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, }