diff options
-rw-r--r-- | grc/core/generator/flow_graph.py.mako | 24 |
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 9b2e8478c0..d229aae9e8 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 ########################################################## |