]> git.gag.com Git - debian/gnuradio/commitdiff
temp fix
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 28 Aug 2008 18:56:14 +0000 (18:56 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 28 Aug 2008 18:56:14 +0000 (18:56 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9439 221aa14e-8319-0410-a670-987f0aec2ac5

grc/src/grc_gnuradio/FlowGraph.py

index 51526c2cf18f0f4112fb46db2702016e390eaf22..238b44ca5c693d63eced9231acdd58ed173b8343 100644 (file)
@@ -23,6 +23,7 @@ from utils import expr_utils
 from grc.elements.FlowGraph import FlowGraph as _FlowGraph
 from Block import Block
 from Connection import Connection
+import traceback
 
 class FlowGraph(_FlowGraph):
 
@@ -80,21 +81,23 @@ class FlowGraph(_FlowGraph):
                Exclude paramterized variables.
                @return a sorted list of variable blocks in order of dependency (indep -> dep)
                """
-               variables = filter(lambda b: b.get_key() in (
-                       'variable', 'variable_slider', 'variable_chooser', 'variable_text_box'
-               ), self.get_enabled_blocks())
-               #map var id to variable block
-               id2var = dict([(var.get_id(), var) for var in variables])
-               #map var id to variable code
-               #variable code is a concatenation of all param code (without the id param)
-               id2expr = dict([(var.get_id(), 
-                       ' '.join([param.to_code() for param in filter(lambda p: p.get_key() != 'id',var.get_params())])
-               ) for var in variables])
-               #sort according to dependency
-               sorted_ids = expr_utils.sort_variables(id2expr)
-               #create list of sorted variable blocks
-               variables = [id2var[id] for id in sorted_ids]
-               return variables
+               try:
+                       variables = filter(lambda b: b.get_key() in (
+                               'variable', 'variable_slider', 'variable_chooser', 'variable_text_box'
+                       ), self.get_enabled_blocks())
+                       #map var id to variable block
+                       id2var = dict([(var.get_id(), var) for var in variables])
+                       #map var id to variable code
+                       #variable code is a concatenation of all param code (without the id param)
+                       id2expr = dict([(var.get_id(), 
+                               ' '.join([param.to_code() for param in filter(lambda p: p.get_key() != 'id',var.get_params())])
+                       ) for var in variables])
+                       #sort according to dependency
+                       sorted_ids = expr_utils.sort_variables(id2expr)
+                       #create list of sorted variable blocks
+                       variables = [id2var[id] for id in sorted_ids]
+                       return variables
+               except: traceback.print_exc()
 
        def get_parameters(self):
                """!