diff options
author | jblum | 2009-01-21 22:43:57 +0000 |
---|---|---|
committer | jblum | 2009-01-21 22:43:57 +0000 |
commit | 7050258b5882c9d2dca83994e009bfd135823648 (patch) | |
tree | 7eb92d6333604c00b2179ff4dbbe3fcc279513e9 /grc/data | |
parent | 29222e3f472dd690d0caf83f51d96c81d56e7bc2 (diff) | |
download | gnuradio-7050258b5882c9d2dca83994e009bfd135823648.tar.gz gnuradio-7050258b5882c9d2dca83994e009bfd135823648.tar.bz2 gnuradio-7050258b5882c9d2dca83994e009bfd135823648.zip |
template simplify
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10281 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/data')
-rw-r--r-- | grc/data/platforms/python/flow_graph.tmpl | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/grc/data/platforms/python/flow_graph.tmpl b/grc/data/platforms/python/flow_graph.tmpl index 98feb4a95..a5fbc64b4 100644 --- a/grc/data/platforms/python/flow_graph.tmpl +++ b/grc/data/platforms/python/flow_graph.tmpl @@ -18,10 +18,10 @@ #set $DIVIDER = '#'*50 $DIVIDER # Gnuradio Python Flow Graph -$('# Title: %s'%$flow_graph.get_option('title')) -$('# Author: %s'%$flow_graph.get_option('author')) -$('# Description: %s'%$flow_graph.get_option('description')) -$('# Generated: %s'%time.ctime()) +# Title: $flow_graph.get_option('title') +# Author: $flow_graph.get_option('author') +# Description: $flow_graph.get_option('description') +# Generated: $time.ctime() $DIVIDER ######################################################## @@ -126,7 +126,7 @@ class $(class_name)(gr.hier_block2): #end if #for $blk in filter(lambda b: b.get_make(), $blocks) #set $code = '\n\t\t'.join($blk.get_make().splitlines()) - $("self.%s = %s"%($blk.get_id(), $code)) + self.$blk.get_id() = $code #end for ######################################################## ##Create Connections @@ -152,13 +152,7 @@ class $(class_name)(gr.hier_block2): #else #set $sink_name = 'self.' + $sink.get_parent().get_id() #end if - $("self.connect((%s, %s), (%s, %s))"%( - $source_name, - $source.get_key(), - $sink_name, - $sink.get_key(), - ) - ) + self.connect(($source_name, $source.get_key()), ($sink_name, $sink.get_key())) #end for ######################################################## |