summaryrefslogtreecommitdiff
path: root/grc/core/FlowGraph.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-18/+35
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Dependent variables sometimes fail to evaluateVolker Schroer2021-10-271-2/+7
| | | | | | | | | | | | | fixes #4788 fixes #5100 fixes #5108 Tested with the coresponding examples. Now disabling or deleting the symbol_rate block in #4788 correctly updates the depending blocks Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: fix the evaluation of interdependent variablesVolker Schroer2021-08-071-1/+0
| | | | | | | | The gr-digital/examples/tx_ofdm.grc fails to evaluate the header_formater variable. This pr fixes #4937 Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: update disabled blocks if they depend on othersVolker Schroer2021-07-191-1/+2
| | | | | | | | | | | | | | | | | | | | | If we want disabled blocks to be updated properly, we have to consider all blocks when updating the fg not only the enabled. This does the patch of Flowgraph.py and fixes #4788. But a problem remains. If you use the example in #4788 and disable the symbol_rate block, only the samp_rate block 'turns to red'. The other blocks don't change. Only if you open and close an arbitrary block, the other blocks are updated. This is fixed by clearing the namespace in renew_namespace in FlowGraph.py. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> grc: update disabled blocks Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: update id blackist with importsVolker Schroer2021-04-151-0/+13
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* Fix typos throughout the codeluzpaz2020-10-291-2/+2
| | | | | | | * 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 C0326: wrong number of spacesClayton Smith2020-10-201-2/+2
|
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-201-5/+5
|
* 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
* grc: add python snippets to GRCJosh Morman2020-02-101-0/+41
| | | | | | | | | | | 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
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* 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: Rename _options_block to options_blockHåkon Vågsether2019-07-281-10/+10
|
* 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
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* grc: add busports back into 3.8Josh Morman2019-07-151-0/+2
| | | | | | | | Bus ports had not been added back in since the refactor of grc Hopefully this fully enables busports though there are still some issues with the gr-fec flowgraphs Fixes #2277
* grc: introduce flag 'show_id' to show block idBastian Bloessl2019-06-291-1/+1
| | | | useful for variable and parameter blocks, but maybe others too
* Modifying dummy block and error messagesVolker Schroer2019-03-131-3/+8
|
* Correctly building dummy blockVolker Schroer2019-03-131-1/+1
|
* grc: Fix Python Module blockHåkon Vågsether2019-01-071-1/+1
| | | | | Before this fix, it was not possible to add a 'Python Module' to a GRC flow graph, it would just throw exceptions when you tried.
* Merge the polished results from the 2017 GSoC "C++ Code Generation with GRC"Andrej Rode2018-12-291-2/+2
|\ | | | | | | | | Flowgraphs with basic blocks can be created in the GNU Radio Companion and exported to a single C++ binary. The use of the C++ generation is still experimental and needs testing and extension to more parts of the GNU Radio codebase.
| * Add C++ generationHåkon Vågsether2018-11-231-2/+2
| |
* | grc: Silence import warnings caused by hier blocks on namespace renewalBrennan Ashton2018-11-281-1/+6
|/ | | | | | | | We do not have a good way right now to determine if an import is for a hier block, these imports will fail as they are not in the search path this is ok behavior, unfortunately we could be hiding other import bugs. Fixes #2183
* grc: Log exceptions on namespace renewalBrennan Ashton2018-11-151-4/+12
|
* grc: Simplify py2/3 logic for new_moduleBrennan Ashton2018-11-121-11/+2
|
* grc: Remove deprecated use of imp moduleBrennan Ashton2018-11-041-2/+11
| | | | | imp module is deprecated as of Python 3.4 but in Python3 we can use the ModuleType to create a new module.
* Added local namespace to eval() for var_valueHåkon Vågsether2018-07-301-1/+1
|
* grc: only add enabled blocks to flow_graph childrenAndrej Rode2017-12-041-1/+1
|
* grc: Bug fixes for flowgraph complexitySeth Hitefield2017-08-011-8/+8
|
* grc: yaml: opens with yaml/makoSeth Hitefield2017-06-291-0/+2
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-177/+112
| | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
* Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-11-171-2/+13
|\
| * grc: make recursive flow graph load and generate more flexibleSebastian Koslowski2016-09-231-1/+1
| |
| * grc: move run command getter to coreSebastian Koslowski2016-09-231-3/+13
| |
* | grc: refactor: handle flowgraph and connection super init same as in blockSebastian Koslowski2016-08-031-3/+3
| |
* | grc: various clean-ups and fixesSebastian Koslowski2016-07-291-47/+2
| |
* | grc: refactor: replace get_enabled by propSebastian Koslowski2016-07-291-7/+5
| |
* | grc: make dummy blocks a block subclassSebastian Koslowski2016-07-291-35/+5
| |
* | grc: refactor: remove get for port and param nameSebastian Koslowski2016-07-291-3/+3
| |
* | grc: refactor: some more bus ports stuffSebastian Koslowski2016-07-291-1/+1
| |
* | grc: gtk3: update gui element classSebastian Koslowski2016-07-131-3/+4
| |
* | grc-refactor: the hopeless cause of bus ports...Sebastian Koslowski2016-07-131-46/+35
| |
* | grc-refactor: make block.params a dictSebastian Koslowski2016-07-131-4/+4
| |
* | grc-refactor: Block: make more public attribsSebastian Koslowski2016-07-131-9/+9
| |
* | grc-refactor: Block: remove key gettersSebastian Koslowski2016-07-131-12/+12
| |
* | grc: gtk3: fix paste and domain color settingsSebastian Koslowski2016-06-101-1/+1
| |
* | grc-refactor: rewrite tree-api in coreSebastian Koslowski2016-06-101-35/+21
| |
* | grc-refactor: ConnectionsSebastian Koslowski2016-06-091-2/+2
| |
* | grc-refactor: remove odictSebastian Koslowski2016-06-091-26/+26
| |
* | grc: py3k compat using python-modernizeSebastian Koslowski2016-06-091-29/+28
|/