summaryrefslogtreecommitdiff
path: root/grc/core/generator/hier_block.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-2/+2
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Implement grcc --output switch for hierarchical blocksJaredD2021-09-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * grc: Implement --output functionality for grcc Reference gnradio Issue #2799. This commit adjusts some logic and code to enable the --output switch for grcc. Prior to this commit, grcc would only output to the GRC_HIER_PATH. The commit adjusts the various Generators in grc/core/generator to consistently use output_dir for the output directory. If it's None, then take from the platform.config.hier_block_lib_dir attribute which can be set via the GRC_HIER_PATH env var. The cpp_top_block generator was also modified to remote its __init__ function which appeared identical to its base TopBlockGenerator. I did not test c++ GRC output. * Make output directory if does not exist * Duplicate TopBlockGenerator __init__ without .py extension; base class object * Typo in os.makedirs kwarg * Added _warnings method from TopBlockGenerator Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com>
* grc: Call connect() for hier blocks that don't have portsHåkon Vågsether2021-02-111-0/+4
| | | | Signed-off-by: Håkon Vågsether <hakon.vagsether@gmail.com>
* grc: save epy blocks/modules to hier_block_dirSebastian Koslowski2021-02-011-9/+6
|
* grc: remove sixClayton Smith2020-10-051-2/+1
|
* grc: fix generation of hier2 block in case of multiple message portsVolker Schroer2019-03-311-2/+0
| | | | | | | | | | | | If a hier2 block contains more than one ( input or output ) message port GRC generates a wrong yml description of this block. If you restart GRC, GRC terminates with an error messages is no longer usable. This can be verified with the example here: "gr-blocks/examples/msg_passing/hier" This example is running in 3.7 without any problems. The modification in platform.py avoids the termination of grc if there is an error in the flowgraph to be loaded.
* grc: Fix GRC-hier-block with message padVolker Schroer2018-11-171-1/+1
| | | | | | | | | | | | | | | | Before this fix, generating hier blocks with message pads would show the following error: ``` Generate Error: 'Port' object has no attribute 'id' >>> Failure Traceback (most recent call last): [...] File "[...]/gnuradio/grc/core/generator/hier_block.py", line 102, in _build_block_n_from_flow_graph_io p['id'] = port.id AttributeError: 'Port' object has no attribute 'id' ```
* grc: Improve exception handling (bare and unnecessary)Brennan Ashton2018-11-151-4/+3
|
* grc: Fix generation of QT-GUI hier blocksHåkon Vågsether2018-11-141-13/+12
| | | | | Previously, typos in hier_block.py were creating errors. This was a bug when converting from Cheetah to Mako.
* Completed switch from XML to YAML for hier blocksHåkon Vågsether2018-08-071-42/+38
|
* Merge branch 'merges/next' into merges/python3Sebastian Koslowski2017-10-251-2/+2
|
* grc: Bug fixes for flowgraph complexitySeth Hitefield2017-08-011-4/+0
|
* grc: yaml: opens with yaml/makoSeth Hitefield2017-06-291-10/+11
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-0/+196
Includes basic converter from XML/Cheetah to YAML/Mako based block format.