summaryrefslogtreecommitdiff
path: root/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
Commit message (Collapse)AuthorAgeFilesLines
* fec: pep8 formattingJosh Morman2021-11-241-637/+639
| | | | Signed-off-by: Josh Morman <jmorman@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>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-3/+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
* 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-271-13/+1
|
* gr-fec: Improve handeling of failure opening alist fileBrennan Ashton2018-11-151-1/+3
|
* Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-73/+77
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-73/+77
| |
* | Comment typo fixing.luz.paz2018-02-031-1/+1
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* 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
|
* gr-fec: LDPC python function - making a better docstringtracierenea2016-04-051-5/+9
| | | | The help/docstring for this function was misleading and confusing even to myself!
* gr-fec: LPDC python function - addressing an "undefined" errortracierenea2016-04-051-1/+1
| | | | | | | | | | | Minor fix to address this error: Traceback (most recent call last): File "Generate_LDPC_matrix.py", line 63, in <module> [bestH,g] = get_best_matrix(newH,100) File "/home/tracie/pybombs/src/gnuradio/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py", line 616, in get_best_matrix [betterH, gap, t] NameError: global name 'betterH' is not defined
* gr-fec: LDPC python function - addressing an "undefined" errortracierenea2016-04-051-1/+1
| | | | | | | | Adding verbosity as an argument to this function, to address this error: File "/home/tracie/pybombs/src/gnuradio/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py", line 478, in inv_mod2 if verbose: NameError: global name 'verbose' is not defined
* fec: LDPC: massive code clean up and change.Tom Rondeau2015-10-151-162/+181
| | | | | | | | | Squashed a number of commits to get to this point. Separated the H and G matrix concepts, make two different encoders and two different decoders. Removed gsl from API; now only an internal dep that we can replace more easily later. Working examples.
* fec: LDPC: Setting copyright date to current year.tracierenea2015-10-151-1/+1
|
* fec: LDPC: Adding capability to provide H matrix for encoding/decoding.tracierenea2015-10-151-2/+47
| | | | | | | | | | | | | - Adding new LDPC classes and example to doc - Editing the ldpc_gen_mtrx class to accept either a generator matrix (G) or a parity check matrix (H). - Renamed class from ldpc_gen_mtrx to ldpc_HorG_mtrx - Updated XML blocks and their documentation accordingly. - Deleting a matrix from examples dir that isn't use in any example. - Adding a simple matrix to example dir that is used in example.
* fec: LDPC: Adding scripts to generate matrices for encoder.tracierenea2015-10-151-0/+619
Adding python scripts which generate parity check matrices for use with the LDPC Richardson Urbanke encoder. A significant amount of matrix manipulation is required, so this process should be done before using the encoder at run time. For large matrices, it will take quite a while.