summaryrefslogtreecommitdiff
path: root/gr-fec/python
Commit message (Collapse)AuthorAgeFilesLines
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-0/+3
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* fec: pep8 formattingJosh Morman2021-11-2427-852/+911
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* runtime: Custom Buffer/Accelerator Device Support - Milestone 1David Sorber2021-10-255-34/+33
| | | | | | | | | | | | | | | Custom Buffer/Accelerator Device Support - Milestone 1 changes: * Refactored existing single mapped buffer code and created single mapped buffer abstraction; wrapping within single mapped buffers is handled explicitly by input blocked and output blocked callbacks that are called from block_executor * Added simple custom buffer allocation interface (NOTE: this interface will change for milestone 2) * Accelerated blocks are still responsible for data transfer but the custom buffer interface eliminates the double copy problem Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
* polar_channel_construction: fix print usageDoron Behar2021-10-211-2/+2
| | | | Signed-off-by: Doron Behar <doron.behar@gmail.com>
* modules: include boost/format where usedMarcus Müller2021-09-071-1/+1
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* fec: Open files using with statements, restructured read_alist_filejfmadeira2021-07-191-72/+67
| | | | Signed-off-by: jfmadeira <jf.madeira@campus.fct.unl.pt>
* fec: Removed star import numpy, ran auto formatterjfmadeira2021-07-191-148/+160
| | | | Signed-off-by: jfmadeira <jf.madeira@campus.fct.unl.pt>
* fec: Corrected spacings and updated String.split() usagejmadeira2021-07-191-14/+14
| | | | Signed-off-by: jfmadeira <jf.madeira@campus.fct.unl.pt>
* applied formatter to codeMark Bauer2021-06-167-298/+425
| | | | Signed-off-by: Mark Bauer <markb5@illinois.edu>
* replaced star imports with explicit importsMark Bauer2021-06-167-7/+16
| | | | Signed-off-by: Mark Bauer <markb5@illinois.edu>
* gr-blocks: remove pdu blocksJacob Gilbert2021-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* pybind: remove forecast from python bindingsJosh Morman2021-02-182-14/+0
| | | | | | | | There is no scenario that a block or app should be calling forecast over the python interface. This is only called by the scheduler, and for python blocks would pass through the gateway interface. Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* fec: Exclude modules from Python bindings if GSL is not presentVolker Schroer2021-02-083-15/+25
| | | | | | | This removes the same blocks from the Python bindings that are already not present in the C++ library if GSL is not present. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* fec: remove stray pybind submodule definition for polarJosh Morman2020-12-071-6/+0
|
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-0328-28/+28
|
* qa: run autopep8 formatting on qa python filesmormj2020-10-3014-272/+454
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* qa: remove xml file parameter causing deprecation warningsmormj2020-10-3011-11/+11
|
* pybind: add implicit conversion from int to enummormj2020-10-281-0/+2
| | | | | | | | | | | | | * dtv: add implicit conversion from int to enum * analog: add implicit conversion from int to enum * blocks: add implicit conversion from int to enum * digital: add implicit conversion from int to enum * fec: add implicit conversion from int to enum * fft: add implicit conversion from int to enum * filter: add implicit conversion from int to enum * qtgui: add implicit conversion from int to enum * trellis: add implicit conversion from int to enum * vocoder: add implicit conversion from int to enum * bindtool: add implicitly_convertible to all enums
* lib, include: Include missing headers.Ryan Volz2020-10-023-3/+3
| | | | | This fixes compilation with MSVC on conda-forge, although why this wasn't needed earlier is a mystery.
* fec: Remove manual memory managementThomas Habets2020-09-074-4/+4
| | | | | This removes almost all manual memory management in gr-fec/. `scl_list` is a bit of magic, so requires more thinking.
* fec: make gsl optional for python bindingsJosh Morman2020-08-141-9/+17
|
* blocks/polar: Remove manual memory managementThomas Habets2020-08-142-2/+2
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0338-91/+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
* fec: add aliases to _make functionsJosh Morman2020-06-041-0/+12
|
* pybind: add hash check to binding file creation (#3472)mormj2020-06-0442-42/+372
|
* fec: add pybind11 bindingsJosh Morman2020-06-0499-32/+4271
|
* fec: make SciPy an optional dependencyJohannes Demel2020-04-021-1/+6
| | | | | | This patch fixes issues like #1545 and #1539. Basically if a module in fec.polar requires SciPy and fails to do , it overwrites the missing function with an approximate version
* Properly read AList in LDPC_matrixkc12122020-01-291-1/+1
| | | read_alist_file is not an LDPC_matrix method.
* Update license header to SPDX formatdevnulling2020-01-2744-572/+44
|
* gr-fec: Add QA test for buffer overflow in CC decoderDaniel Estévez2020-01-061-0/+58
| | | | | | | | | Adds a QA test that tries to detect the kind of buffer overflows in the CC decoder that were fixed in #2965 The decoder is run with different frame lengths, and several frames are tried to be decoded for each frame length. The test is considered successful if it doesn't segfault or abort.
* 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/
* gr-fec: Improve handeling of failure opening alist fileBrennan Ashton2018-11-151-1/+3
|
* python3: Wrap map with list in fec block yml filesBrennan Ashton2018-11-011-3/+3
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-3143-475/+589
|\
| * python: replace unfunctional old_div with functional codeAndrej Rode2018-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | a previous change to py3k introduced synactically incorrect `old_div` function calls. A replacement with `//` and `/` where applicable is more appropriate. Eventually `from __future__ import division` needs to be added as well to have the "real" division also for integer values in python closes #1902
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-2441-432/+574
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| | * Merge branch 'next' into python3Johnathan Corgan2017-06-221-2/+2
| | |\ | | | | | | | | | | | | | | | | Conflicts: gnuradio-runtime/python/gnuradio/gr/tag_utils.py
| | * | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-2641-432/+574
| | | |
| * | | Merge branch 'master' into nextMartin Braun2018-02-033-3/+3
| |\ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into nextJohnathan Corgan2017-06-221-2/+2
| |\ \ \ | | |_|/ | |/| |
| * | | cmake: nuke cpack from existenceJohnathan Corgan2016-08-033-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
| * | | fec: polar_channel_construction replace OptionParser by ArgumentParser + cleanupJiří Pinkava2016-06-281-30/+14
| | | |
* | | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+6
| | | |
* | | | fec: fix Py prints to work with Py3kJohannes Demel2018-03-021-2/+2
| | | | | | | | | | | | | | | | This commit fixes Py2k print statements. Updated to Py3k print_function
* | | | fec: make SciPy an optional dependencyJohannes Demel2018-03-021-1/+7
| |_|/ |/| | | | | | | | | | | | | | This patch fixes issues like #1545 and #1539. Basically if a module in fec.polar requires SciPy and fails to do , it overwrites the missing function with an approximate version
* | | Comment typo fixing.luz.paz2018-02-033-3/+3
| |/ |/| | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | gr-fec: specify 32bit int output when getting frozen bit indicesgnieboer2017-06-161-2/+2
|/
* gr-fec, LDPC: correct the name of the python function calledtracierenea2016-04-071-1/+1
|
* gr-fec: LDPC python - adding a handy functiontracierenea2016-04-051-0/+33
|