summaryrefslogtreecommitdiff
path: root/grc/core
Commit message (Collapse)AuthorAgeFilesLines
...
* 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: indent multiline connections in py flowgraphMike Walters2020-12-181-1/+1
| | | | | | | | This fixes flowgraph generation when using connection templates with multiple lines. Previously it would only indent the first line and subsequent lines would have no indentation, causing a python error. Signed-off-by: Mike Walters <mike@flomp.net>
* grc: Fix message port show/hide problem due to bus logic updateDavid Pi2020-12-171-2/+5
| | | | | | | | update_bus_logic() is called when disabling a bus, it doesn't check if it's been previously enabled. This causes it to restore port.hidden with a None which ultimately is converted to False. So it never hides the message ports. Also, filter message ports from buses.
* Bump the C++ standard version to C++14Marcus Müller2020-12-171-1/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* cppgen: Update to modern CMakeHåkon Vågsether2020-11-075-27/+22
|
* Fix typos throughout the codeluzpaz2020-10-292-4/+4
| | | | | | | * Fix various typos Found via `codespell v2.0.dev` `codespell -q 3 -L ans,fo,hist,inout,ist,ith,nd,sinc,uint -S ./volk`
* grc: fix pylint C0330: wrong hanging indentationClayton Smith2020-10-203-8/+7
|
* grc: fix pylint C0326: wrong number of spacesClayton Smith2020-10-208-13/+13
|
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-2022-37/+36
|
* grc: replace deprecated getargspec with getfullargspec to remove warningmormj2020-10-161-1/+1
|
* grc: remove sixClayton Smith2020-10-0520-140/+99
|
* grc: use os.pathsep (Windows)japm482020-09-301-3/+1
| | | | | | os.path.sep is unreliable in Windows ("\" in official python, "/" in MSYS2) With this change os.pathsep is used instead to get the path separator: ":" (*nix) or ";" (Windows)
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0334-34/+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
* grc: Add dir_select parameter typeYamakaja2020-07-232-3/+3
| | | | | | | | This commit adds a new parameter type to GNURadio Companion that allows you to select directories using a gui. This functionality is very similar to that of the previously available "file_open" and "file_save" parameter types, and mainly differs by calling GTKs file chooser with FileChooserAction.SELECT_FOLDER.
* grc: Fix hier block io_signature generationJohannes Demel2020-06-251-2/+2
| | | | | | GRC used `gr.io_signaturev` to generate hierarchical block signatures. This was only a SWIG alias to `gr.io_signature.makev`. Now, the generator calls `gr.io_signature.makev` directly.
* grc: remove dead codeClayton Smith2020-05-281-8/+0
|
* grc: fixup: dynamically update namespaces from blocks (#3317)Sebastian Koslowski2020-05-161-4/+6
|
* grc: dynamically update namespaces from blocksJacob Gilbert2020-05-151-1/+16
| | | | amongst other things, allows assert statements to use items within namespaces the blocks import
* grc: Deduplicate block pathsMartin Braun2020-04-281-0/+4
| | | | | | | | GRC reads paths from various sources, including the GRC_BLOCKS_PATH environment variable. It can happen that paths appear twice in the list, causing warnings about findings blocks twice. This deduplicates the paths in the config object.
* grc: Enable strict_undefined to ease Mako template debuggingHåkon Vågsether2020-04-211-1/+1
|
* grc: workaround to allow epy blocks/modules to loadJosh Morman2020-03-261-2/+5
| | | | | | | | | | | The underlying issue is that the built in blocks all end up getting the 'cpp' flag, which is not valid for the embedded python blocks To fix this some work needs to be done in the "Flags" class, as all the flags added to classes that get accumulated in the build_ins list get added to all the classes See register_build_in
* Allow grc to load flowgraphs with missing blocksTerry May2020-03-121-2/+2
|
* grc: Fix C++ code generationTerry May2020-02-188-64/+182
| | | | | | | | | | | | | | | | | | | | | | | - Added support for C++ std::map<> from python dict - Fixed default initialization of parameters in main() - Added missing include for realtime scheduling - Added default CMake option for std=c++11 as this is required for gnuradio >= 3.8 - Fixed mako template to add initialization to parameter declarations in main() - Fixed C++ constructor initialization list generation - Fixed parameter type determination when an lvalue is used in an rvalue expression - Improved determining type of C++ variables - Added C++ support for gr_complex parameters - Fixed C++ generation of nested container types - Added C++ support for virtual source/sink - Moved cmake CMAKE_CXX_STANDARD 11 option from options.yml to CMakeLists.txt.mako - Fixed qtqui_sink to allow multiple instances - Revised virtual connection processing in cpp_top_block.py Reviewed-By: Håkon Vagsether <hauk142@gmail.com>
* grc: Remove unused template definitionIgor Freire2020-02-151-7/+0
|
* grc: Fix eng_float default on argparse templateIgor Freire2020-02-151-1/+1
| | | | | | | | | The import of eng_notation was removed in 678a7c2ad, and so float parameter blocks were leading to flowgraph compilation error. Since eng_notation is still imported in the generated python script, we can put the call to num_to_str in the generated script, instead of calling it during script generation.
* grc: add python snippets to GRCJosh Morman2020-02-106-6/+95
| | | | | | | | | | | This feature adds the ability to insert arbitrary code into the python flowgraph. It gives a little more low-level flexibility for quickly modifying flowgraphs and adding custom bits of code rather than having to go and edit the generated py file One example is synchronizing multiple USRP objects - sometimes you want different sync than what is offered in the multi-usrp object, so you can put a bit of code in the snippet block to do the custom synchronization
* grc: Fix failing expr_utils testHåkon Vågsether2020-02-031-1/+1
| | | | Caused by switch from Python 2 to 3: https://docs.python.org/3/whatsnew/3.0.html#ordering-comparisons
* Update license header to SPDX formatdevnulling2020-01-2741-531/+78
|
* grc: Add handling of catch_exceptions top_block paramScott Torborg2020-01-052-4/+5
| | | | | | Adds an additional option to the flowgraph's "Generate Options" in GRC called "Catch block exceptions", under the Advanced tab. This parameter controls the catch_exceptions flag passed to top block instantiation.
* Disable Python 2kMarcus Müller2020-01-041-9/+0
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* grc: loosen the validation of block in function probeJosh Morman2020-01-031-2/+4
| | | | | | | | | | | | The block_id parameter for the block being probed was being validated as a block_id. But there is a use case where this can be blank to call a function on the flowgraph object itself. Changed the block_id dtype to "name" just like function_name. Could have just changed it to raw and done no validation, but that doesn't get displayed very nicely in the grc block Fixes #2966
* grc: add send_flowgraph_error_report to MessagesGrant Cox2019-12-192-14/+15
| | | | | 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: remove deprecated encoding argument from json.loadskarel2019-11-181-2/+2
|
* grc: embedded python module show_id flagJosh Morman2019-11-061-1/+4
| | | | | | It is necessary to have access to the show_id flag for a python module in grc to be able to access it elsewhere. This adds the flag when the module object is created in the block library.
* Module name correction for bokehgui Notou2019-11-011-3/+3
|
* grc: embedded python parameter values disappearChris2019-11-011-4/+4
|
* grc: update namespace properly for nested variablesJosh Morman2019-11-011-2/+2
| | | | | | | | | | | | | | Was getting lots of evaluation error prints when using gr-digital examples because the nested variables were not updated until rewrite() and evaluate were called over and over Seems to fix the issue to update the flowgraph namespace variable after each variable block is evaluated I believe this also alleviates a previous issue (#2634) where rewrite had to be called twice when data was being imported Fixes #2634
* grc: validate gui hintsJosh Morman2019-11-011-0/+7
| | | | | | | committing the fix suggested by @haakov Make gui_hint collisions show up as validation errors Fixes #2287
* Remove cpp generation function hard tabwcampbell2019-09-281-2/+2
| | | | Signed-off-by: wcampbell <wcampbell1995@gmail.com>
* GRC: update cloned port's dtypeGlenn Richardson2019-09-201-0/+1
|
* grc: enable advanced parametersBastian Bloessl2019-09-191-12/+12
| | | | cpu affinity, max/min out buf size
* 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/cppgen: Use cli-style CMake optionsHåkon Vågsether2019-07-292-4/+13
| | | | | In other words, use "-DKEY1=VAL1 -DKEY2=VAL2" instead of "KEY1=VAL1; KEY2=VAL2"
* grc: Rename _options_block to options_blockHåkon Vågsether2019-07-281-10/+10
|
* grc: Add sensible defaults to Options blockHåkon Vågsether2019-07-282-3/+3
|
* grc: Fix XML loading without lxmlHåkon Vågsether2019-07-281-4/+6
|
* Fix KeyError in variable blocksVolker Schroer2019-07-251-0/+3
| | | variable blocks without a param value need to be updated otherwise the variable_block.namespace is wrong
* grc: clean up todos from busportsJosh Morman2019-07-212-9/+10
| | | | Couple of leftover todos from the copy of busports code from 3.7
* grc: Use yaml.safe_load() instead of yaml.load()Håkon Vågsether2019-07-211-1/+1
| | | | yaml.load() has been deprecated: https://msg.pyyaml.org/load