summaryrefslogtreecommitdiff
path: root/gr-analog/python
Commit message (Collapse)AuthorAgeFilesLines
* Update python bindingsNick M2021-12-102-2/+2
| | | | Signed-off-by: Nick M <taclane@users.noreply.github.com>
* 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>
* analog: pep8 formattingJosh Morman2021-11-2411-194/+260
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* Fix issue 4595 qa_agc Assertion Error.John Sallay2021-10-251-1/+3
| | | | | | | The number of input elements needs to be disivible by volk_alignment, which it wasn't for machines with 512-bit registers. Signed-off-by: John Sallay <jasallay@gmail.com>
* analog: qa_sig_source use cmd portJosh Morman2021-04-211-2/+6
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* analog/fastnoise: avoid modulo operation when picking indicesMarcus Müller2021-03-251-1/+1
| | | | | | | | | When the pool is power-of-2-sized, index generation can be done using a simple bitmask. Document this, add logging info. - use unsigned and fixed-length int where due - avoid expensive integer modulo operation when possible - extract power-of-two constexpr - don't clutter the logs for small pool sizes Signed-off-by: Marcus Müller <marcus@hostalia.de>
* gr-analog: Rename wfm_rcv_pll blocksDavid Pi2021-01-201-42/+41
| | | | | | Rename from auto-generated to more sensible names. Signed-off-by: David Pi <david.pinho@gmail.com>
* analog: fix AGC classes QA test to match updated sig_source outputArtem Pisarenko2021-01-171-250/+250
| | | | | | | Correcting reference values in test data evaluated against graph involving recently corrected fxpt sine/cosine calculation Signed-off-by: Artem Pisarenko <artem.k.pisarenko@gmail.com>
* analog: fm: Add audio_rate variable and deemph_tau parametersefardin2021-01-151-3/+6
| | | | Signed-off-by: efardin <efardin@ieee.org>
* analog: fm: Fix orientation of L and R audio; Remove hard coded parametersefardin2021-01-151-20/+17
| | | | Signed-off-by: efardin <efardin@ieee.org>
* add import fft to python files that reference fft.windowJosh Morman2020-12-184-4/+4
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* global replace of firdes.WIN_ with fft.window.WIN_Josh Morman2020-12-181-3/+3
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* global replace of filter.firdes.WIN_ with fft.window.WIN_Josh Morman2020-12-183-6/+6
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* analog: WFM tools: proper integer div, decimation handlingMarcus Müller2020-11-094-7/+18
|
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-035-5/+5
|
* qa: run autopep8 formatting on qa python filesmormj2020-10-3018-543/+623
| | | | | | 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-3019-19/+19
|
* Remove freqz and gnuplot_freqz from gru moduleClayton Smith2020-10-301-12/+0
|
* pybind: add implicit conversion from int to enummormj2020-10-283-0/+6
| | | | | | | | | | | | | * 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
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0322-43/+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
* analog: cast integer divide to type int for nbfm_txduggabe2020-07-221-1/+1
|
* correct left and right outputs; change filter cutoff frequencyduggabe2020-07-201-2/+3
|
* correct fm stereo heir block, add example grcduggabe2020-07-201-156/+67
|
* analog: signal source block accepts cmd messagesalekhgupta14412020-06-231-14/+44
| | | | | | | | | | | | | | | containing * amplitude (ampl) * frequency (freq) * offset (offset) * phase (phase) key/value pairs. Deprecates the `freq` port and adds a logging message. Adds a small GRC example.
* pybind: add hash check to binding file creation (#3472)mormj2020-06-0434-34/+298
|
* analog: add pybind11 bindingsJosh Morman2020-06-0479-30/+3954
|
* Update license header to SPDX formatdevnulling2020-01-2732-416/+32
|
* analog: fix test for byte signal sourceNicolas Cuervo2020-01-021-2/+4
|
* Fix clipping in WFM receiverClayton Smith2019-10-191-2/+1
|
* Fix for more misc typosluz.paz2019-08-102-2/+2
|
* Add basic tests for FM preemphasis and deemphasisClayton Smith2019-07-291-0/+65
|
* Fix division by zero in fm_preemphClayton Smith2019-07-271-1/+1
|
* analog: correct errors of automatic conversion script in fm_preemphAndrej Rode2019-05-221-1/+2
| | | | | | | | An automatic conversion for python3 mangled the source and introduced a bug. This commit fixes the conversion bug in fm_preemph. Changeset that lead to this bug still has to be analyzed further. Fixes #2286
* gr-analog: sig source byte support mode, added qa tests #1994Eral Tuerkyilmaz2019-04-191-0/+28
|
* Use raw strings for regexp and docstrings that have desired backslashesBrennan Ashton2018-11-121-2/+2
| | | | Resolves #2121 DeprecationWarning: invalid escape sequence /
* docs: fixed docstring for nbfm tx and rxMarc Lichtman2018-10-292-35/+33
|
* docs- moved documentation inside docstringMarc Lichtman2018-10-221-191/+184
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-3130-218/+276
|\
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-2431-217/+277
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2631-217/+277
| | |
| * | Merge branch 'master' into nextMartin Braun2018-02-031-2/+2
| |\ \ | | |/ | |/|
| * | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
| | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* | | Added qa test for complex cosineGregory Eslinger2018-04-051-0/+14
| | |
* | | analog: improve fastnoise qaAndrej Rode2018-03-301-1/+21
| | |
* | | split reproducibility into typesAndrej Rode2018-03-301-2/+3
| | |
* | | analog: rework qa_fastnoise, add reproducibility testAndrej Rode2018-03-301-43/+72
| | |
* | | added unit testing for statistical properties of fastnoise source.Marcus Müller2018-03-301-13/+51
| | |
* | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+5
| |/ |/|
* | Comment typo fixing.luz.paz2018-02-031-2/+2
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* gr-analog: Add safety and default for FM preemphasis filterAndy Walls2016-03-303-52/+35
| | | | | | | | | | | | | The FM preemphasis filter design now precludes the user from inducing a pole on the unit circle at z = -1.0 and z = 1.0. A pole at either of these locations makes the filter unstable and useless: feeding back "+/-inf" into an IIR filter has no good recovery. Also provide a reasonable, maximally safe default of 0.925*fs/2.0 for the high frequency corner, fh. This keeps the slope of the preemphasis filter looking reasonable sane in the whole band; at least for tau=75e-6 and fs=48000.