summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* qa: update tests to work with OpenEmbeddedPhilip Balister2021-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * qa_nlog10.py: Update test to check for equal with one less decimal place. On the qemu machines built with OpenEmbedded, this test failed if the check was 5 decimal places. Relaxing to 4 lets the test pass. The volk routines used in the implementation pass QA already. Signed-off-by: Philip Balister <philip@balister.org> * Update QA tests to import helper routines from blocks. The file metadata QA installs a file in blocks, but imported it directly. Updated init.py to import via blocks. matrix interleaver imported some routines from a py file that was available via blocks. These cretaed issues when you install the qa tests in images to run them outside the build area. Signed-off-by: Philip Balister <philip@balister.org> * python formatting Signed-off-by: Josh Morman <jmorman@gnuradio.org> Co-authored-by: Josh Morman <jmorman@gnuradio.org>
* blocks: pep8 formattingJosh Morman2021-11-241-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* blocks: add matrix interleaver blockJaredD2021-07-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | * blocks: add matrix interleaver block Matrix interleaver including qa test and example The matrix interleaver is a hierarchical block that pairs a base deinterleave block that effectively writes samples into "rows" (1 block of samples per output) and a base interleave block that outputs samples iteratively from each input like "columns". Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com> Add grc file and update blocks.tree.yml. Fix module for matrix interleaver example Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com> * Update py file docs and license block Co-authored-by: Jared Dulmage <jared.dulmage@caliola.com>
* testing: rm dependencies from disabled components in blocks/runtime testsMarcus Müller2021-06-191-1/+5
| | | | | | | | | This included shifting of the PDU test from runtime to gr-pdu, and making the tests that actually require blocks conditional on whether there's going to be gr-blocks. Also, don't use gr-analog just because you need data. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-blocks: remove pdu blocksJacob Gilbert2021-03-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | The following have been moved to the new gr::pdu module or to gr::network and are no longer needed in gr::blocks: - pdu (noblock) - pdu_filter block - pdu_remove block - pdu_set block - pdu_to_tagged_stream block - random_pdu block - socket_pdu block - stream_pdu_base (noblock) - tagged_stream_to_pdu block - tcp_connection (noblock) - tuntap_pdu block The digital and FEC modules had a large number of references to the PDU blocks that were moved from gr-blocks to gr-pdu, this updates these changes in example flowgraphs and a few python files. The usage-manual update will be propagated to the wiki so that future exports will remain up to date. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-2/+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
* blocks: add pybind11 bindingsJosh Morman2020-06-041-3/+3
|
* gr-blocks Add Msg to Var and Var to Msg Conversion Blocksghostop142020-02-151-0/+3
| | | | | | | | | | | | | | | | These 3 new blocks provide the missing glue to move between messages and variables in the same flowgraph. There are 3 variants here: 1. Monitor a variable and produce a user-specified message (pair) when the variable changes. Useful bridging standard GUI controls to message-based blocks. 2. When an inbound message (pair) is received, update a specified variable. 3. When an inbound message (dict) is received, extract a single dictionary entry and produce a message pair (useful if you have a multi-value dictionary but you just want to pull off a single attribute such as frequency or gain without modifying the upstream block. This can be paired with (2) if necessary to move from a dictionary item to a variable.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-3/+7
|
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-1/+1
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* Merged in next_docs branch.Ben Reynwar2013-05-191-2/+1
|
* blocks: Enabling uninstalled python imports.Ben Reynwar2013-03-071-0/+45