commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10283 - in gnuradio/trunk/grc: . data/platforms/pytho


From: jblum
Subject: [Commit-gnuradio] r10283 - in gnuradio/trunk/grc: . data/platforms/python
Date: Wed, 21 Jan 2009 18:00:12 -0700 (MST)

Author: jblum
Date: 2009-01-21 18:00:12 -0700 (Wed, 21 Jan 2009)
New Revision: 10283

Modified:
   gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl
   gnuradio/trunk/grc/todo.txt
Log:
params must exist for option parser

Modified: gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl    2009-01-22 
00:32:48 UTC (rev 10282)
+++ gnuradio/trunk/grc/data/platforms/python/flow_graph.tmpl    2009-01-22 
01:00:12 UTC (rev 10283)
@@ -179,15 +179,17 @@
 ########################################################
 #if $generate_options != 'hb'
 if __name__ == '__main__':
+       #set $args = list()
+       #if $parameters
        parser = OptionParser()
-       #set $args = list()
-       #for $param in $parameters
-               #if $param.get_param('type').get_value()
+               #for $param in $parameters
+                       #if $param.get_param('type').get_value()
        parser.add_option("--$param.get_id()", dest="$param.get_id()", 
type="$param.get_param('type').get_value()", default=$param.get_make())
-                       #silent $args.append('%s=options.%s'%($param.get_id(), 
$param.get_id()))
-               #end if
-       #end for
+                               #silent 
$args.append('%s=options.%s'%($param.get_id(), $param.get_id()))
+                       #end if
+               #end for
        (options, args) = parser.parse_args()
+       #end if
        tb = $(class_name)($(', '.join($args)))
        #if $generate_options == 'wx_gui'
        tb.Run()

Modified: gnuradio/trunk/grc/todo.txt
===================================================================
--- gnuradio/trunk/grc/todo.txt 2009-01-22 00:32:48 UTC (rev 10282)
+++ gnuradio/trunk/grc/todo.txt 2009-01-22 01:00:12 UTC (rev 10283)
@@ -32,6 +32,7 @@
 -special connection validation rules for disabled blocks
 -threads dont die on exit in probe and variable sink
 -overloaded gui classes for each platform, move param input objects into 
overloaded
+-proper error handling when file DNE -> currently dtd check fails first
 
 ##################################################
 # External





reply via email to

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