aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Bloessl <mail@bastibl.net>2019-07-02 10:08:38 +0200
committerMarcus Müller <marcus@hostalia.de>2019-09-19 16:32:36 -0500
commitac6baea81cb27cb3a434e7d038ad6ada5d583170 (patch)
tree8112b4b299a567ba9e847924454f8a05d97bb30a
parentgrc: option toggle the show id on all blocks (diff)
downloadgnuradio-ac6baea81cb27cb3a434e7d038ad6ada5d583170.tar.xz
gnuradio-ac6baea81cb27cb3a434e7d038ad6ada5d583170.zip
grc: enable advanced parameters
cpu affinity, max/min out buf size
-rw-r--r--grc/core/generator/flow_graph.py.mako24
1 files changed, 12 insertions, 12 deletions
diff --git a/grc/core/generator/flow_graph.py.mako b/grc/core/generator/flow_graph.py.mako
index 9b2e8478c..d229aae9e 100644
--- a/grc/core/generator/flow_graph.py.mako
+++ b/grc/core/generator/flow_graph.py.mako
@@ -190,18 +190,18 @@ gr.io_signaturev(${len(io_sigs)}, ${len(io_sigs)}, [${', '.join(size_strs)}])\
% if blk_make:
${ indent(blk_make.strip('\n')) }
% endif
-## % if 'alias' in blk.params and blk.params['alias'].get_evaluated():
-## (self.${blk.name}).set_block_alias("${blk.params['alias'].get_evaluated()}")
-## % endif
-## % if 'affinity' in blk.params and blk.params['affinity'].get_evaluated():
-## (self.${blk.name}).set_processor_affinity(${blk.params['affinity'].get_evaluated()})
-## % endif
-## % if len(blk.sources) > 0 and 'minoutbuf' in blk.params and int(blk.params['minoutbuf'].get_evaluated()) > 0:
-## (self.${blk.name}).set_min_output_buffer(${blk.params['minoutbuf'].get_evaluated()})
-## % endif
-## % if len(blk.sources) > 0 and 'maxoutbuf' in blk.params and int(blk.params['maxoutbuf'].get_evaluated()) > 0:
-## (self.${blk.name}).set_max_output_buffer(${blk.params['maxoutbuf'].get_evaluated()})
-## % endif
+ % if 'alias' in blk.params and blk.params['alias'].get_evaluated():
+ self.${blk.name}.set_block_alias("${blk.params['alias'].get_evaluated()}")
+ % endif
+ % if 'affinity' in blk.params and blk.params['affinity'].get_evaluated():
+ self.${blk.name}.set_processor_affinity(${blk.params['affinity'].get_evaluated()})
+ % endif
+ % if len(blk.sources) > 0 and 'minoutbuf' in blk.params and int(blk.params['minoutbuf'].get_evaluated()) > 0:
+ self.${blk.name}.set_min_output_buffer(${blk.params['minoutbuf'].get_evaluated()})
+ % endif
+ % if len(blk.sources) > 0 and 'maxoutbuf' in blk.params and int(blk.params['maxoutbuf'].get_evaluated()) > 0:
+ self.${blk.name}.set_max_output_buffer(${blk.params['maxoutbuf'].get_evaluated()})
+ % endif
% endfor
##########################################################