commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11165 - gnuradio/trunk/grc/src/platforms/python


From: jblum
Subject: [Commit-gnuradio] r11165 - gnuradio/trunk/grc/src/platforms/python
Date: Fri, 29 May 2009 12:10:44 -0600 (MDT)

Author: jblum
Date: 2009-05-29 12:10:43 -0600 (Fri, 29 May 2009)
New Revision: 11165

Modified:
   gnuradio/trunk/grc/src/platforms/python/FlowGraph.py
Log:
eval fix

Modified: gnuradio/trunk/grc/src/platforms/python/FlowGraph.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/python/FlowGraph.py        2009-05-29 
16:54:05 UTC (rev 11164)
+++ gnuradio/trunk/grc/src/platforms/python/FlowGraph.py        2009-05-29 
18:10:43 UTC (rev 11165)
@@ -25,11 +25,12 @@
 def _get_value_expr(variable_block):
        """
        Get the expression to evaluate from the value param.
+       Parameter blocks need to be evaluated so the stringify flag can be 
determined.
        @param variable_block the variable or parameter block
        @return the expression string
        """
        value_param = variable_block.get_param('value')
-       value_param.evaluate() #evaluate prior to code
+       if variable_block.get_key() == 'parameter': value_param.evaluate()
        return value_param.to_code()
 
 class FlowGraph(_FlowGraph):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]