summaryrefslogtreecommitdiff
path: root/grc/core/platform.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-17/+30
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Removed unused code in gnuradio/platform.pyAdarsh Singh2021-10-141-7/+1
| | | Signed-off-by: Adarsh <singhadarsh100@gmail.com>
* grc: Implement grcc --output switch for hierarchical blocksJaredD2021-09-271-6/+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: cache now time-dependent, version-sensitiveMarcus Müller2021-06-041-1/+1
| | | | | | | | | | | | | | | | | | Complete Cache will be discarded if current cache file * has no version info * version older than version in cacheversion.in (i.e. after an update) Cached entry will be reloaded from yaml if * missing * cached-at property smaller than modification time of yaml file (half second tolerance, due to inelegant floating point modification time handling in python) Also, a bit of debug logging. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: Be more informative when missing "options" block.Ryan Volz2021-06-011-1/+14
| | | | | | | | | | | This raises an RuntimeError describing that GRC could not find the built-in blocks rather than raising a KeyError on "options", which left users with little to go on. This error has come up in various situations involving an incorrect blocks path (due to mixing GR versions causing the configuration files to point to the wrong installation) or simply the blocks not being installed. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* grc: Remove extra logger in grc/core/platformSeth Hitefield2021-01-111-1/+0
| | | | | | | | | | This is an update for PR #2424. The extra debug output from GRC was being generated by another logger instance in grc/core/platform that did not respect the command line arguments. This removes the extra logger and sets the logger level in main to whatever is requested from the command line. See grc/main.py:43 for more detail.
* grc: remove sixClayton Smith2020-10-051-10/+7
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* grc: add send_flowgraph_error_report to MessagesGrant Cox2019-12-191-14/+1
| | | | | add method to the Messages module to print flowgraph errors in a verbose format
* grc: report flowgraph loading errors nicely in grccGrant Cox2019-12-191-0/+14
| | | | | | Wrote function in Platform to use get_error_messages() member function from parent class and report these upon a flowgraph loading exception.
* grc: prevent yaml parser errors from crashing grcJosh Morman2019-08-051-1/+1
| | | | | | Moves the yaml file load inside the try block Fixes #2668
* grc: Fix XML loading without lxmlHåkon Vågsether2019-07-281-4/+6
|
* GRC: Fix for GRC crash in case of flowgraph errorArpit Gupta2019-06-181-0/+3
|
* grc: fix generation of hier2 block in case of multiple message portsVolker Schroer2019-03-311-1/+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.
* Make GRC save blank parametersHåkon Vågsether2019-01-031-3/+0
|
* Fix C++ hier block generationHåkon Vågsether2018-12-181-3/+0
|
* Add C++ generationHåkon Vågsether2018-11-231-0/+17
|
* Fixed GRC saving corrupted .grc filesHåkon Vågsether2018-07-301-3/+3
|
* grc: refactor: move Param cls to core.paramsSebastian Koslowski2017-11-081-3/+2
|
* grc: disable auto-conversion and implement json cacheSebastian Koslowski2017-11-081-59/+50
|
* Merge branch 'next' into python3Sebastian Koslowski2017-09-061-0/+1
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-0/+430
Includes basic converter from XML/Cheetah to YAML/Mako based block format.