summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital
Commit message (Collapse)AuthorAgeFilesLines
...
| * digital: remove sixClayton Smith2020-10-052-24/+21
| |
* | digital/correlate_access_code: Prevent false triggersThomas Habets2020-10-192-4/+134
| | | | | | | | | | | | | | | | Leftover data from last time CAC triggered, or just leading zeroes being ignored. This commit prevents these by assuring that we've processed at least as many bits as the code is, before allowing a trigger.
* | digital: replace deprecated getargspec with getfullargspec to remove warningmormj2020-10-161-2/+2
|/
* digital: python: bindings: Use nullptr instead of nonstandard __null.Ryan Volz2020-10-051-1/+1
| | | | This fixes compilation with MSVC.
* digital/qa_header: Remove manual memory managementThomas Habets2020-08-141-1/+1
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0334-72/+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
* pybind: remove docstring dependency on entire moduleJosh Morman2020-06-111-1/+1
| | | | | | | | | | When the module is used as a dependency for the docstring substitution task, any change to any file in the module will cause the regeneration of the bindings for the entire module and all modules that are dependent on that one. There is still probably a better way tie the docstring substitution into the custom commands, per file
* pybind: add hash check to binding file creation (#3472)mormj2020-06-0485-86/+766
|
* pybind: run clang-formatJosh Morman2020-06-042-7/+7
|
* digital: add python bindings for equalizers+modulate_vectorJosh Morman2020-06-0421-41/+804
|
* digital: add pybind11 bindingsJosh Morman2020-06-04187-154/+8447
|
* gr-digital/python : Updated soft_dec_lut_gen.pyalekhgupta14412020-04-121-2/+2
|
* digital: restructure equalizers and add dfe (#3306)mormj2020-04-093-0/+415
| | | | | | | | | | | | | | | | | | * digital: restructure equalizers and add dfe This commit restructures the linear equalizer to have a separate specifiable adaptive algorithm. Generally this works the same as the previous LMS and CMA decision directed equalizers, but also adds the ability to equalize using training sequences as well. Also, a Decision Feedback Equalizer structure is added * digital: more const in equalizers * digital: equalizers - more safety based on review * digital: dfe - use deque instead of vector for decision_history * digital - equalizers, further cleanup
* pmt: Fix RuntimeError in pmt_to_pythonMichael Byers2020-02-092-5/+5
| | | | | | | Python has a RuntimeError that's thrown during the pmt to_python function. Instead of throwing this error, SWIG has been updated to throw a TypeError. This allows us to keep the same behavior whereby we iterate over PMT types until the proper conversion is found
* Update license header to SPDX formatdevnulling2020-01-2770-928/+87
|
* digital: add filter response truncation to generic modJosh Morman2020-01-261-3/+17
| | | | | | | | | | The generic mod implementation is a convenience hier block to modulate bits to symbols and apply an RRC filter. One downside is the output is delayed by the length of the RRC filter (which is specified inside the block). This adds an option to truncate the output according to the length of the filter response such that the start of output is aligned to the first symbol. Fixes #2920
* qa: Fix the stop condition in qa_header_payload_demuxVasil Velichkov2020-01-231-2/+2
| | | | | | | | Tests nees to run until both payload_sink and header_sink recive the specified amount of data or the time limit is reached and should not stop when only one of the sinks has received enough data. This should fix the sporadic tests failures.
* digital: Remove deprecated OFDM blocksMartin Braun2020-01-1610-1410/+1
| | | | | | | | | | | | | | | These blocks have been marked deprecated for a while and had been slated for removal. They are now being removed. This includes the following blocks: - ofdm_frame_acquisition - ofdm_frame_sink - ofdm_insert_preamble - ofdm_sync_fixed - ofdm_sync_pn - ofdm_sync_pnac - ofdm_sync_ml - ofdm_receiver
* digital: ofdm: Allow multiple CP lengths for cyclic prefixerMaximilian Stiefel2020-01-081-13/+82
| | | | | | | | This allows to specify multiple CP lengths that can be used one after another, for example for LTE modulators. - Improve sanity checking - Maintains old API
* additive_scrambler: Add proper test for count based resetrear10192020-01-031-14/+10
| | | | | | | | | | | | Do not chain two additive scramblers to check whether the reset is performed correctly: A flaw in the reset logic can not be detected this way as the same logic is used both in the scrambler and the descrambler. Instead, check whether the first N elements generated by the scrambler are repeated in the output (where N is the reset count). This test does fail as of this commit; see [1]. [1] https://github.com/gnuradio/gnuradio/issues/2926
* Fix for misc. documentation + trivial typosluz.paz2019-07-175-5/+5
| | | | | | | | | | | | | 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/
* digital: Fix Python 3 divide for tagged streams.Ron Economos2019-01-151-3/+3
|
* qa: Use random.seed(0) everywhere import random is usedMartin Braun2018-12-1913-1/+14
| | | | | | This affects all Python-based unit tests which use the Python random module. If they do, this change adds random.seed(0) to every setUp() call, so that all QA runs are reproducible.
* digital: HPD QA uses fixed random.seed(0)Martin Braun2018-12-161-0/+1
| | | | This removes any randomness from the test.
* digital: Fix some Pylint warnings in qa_header_payload_demux.pyMartin Braun2018-12-161-77/+86
| | | | No functional changes.
* digital: Fix ofdm_sync_sc_cfb QA flakinessMartin Braun2018-12-161-40/+49
| | | | | | | | | | | - Used a fixed random seed - Removed messages that declare that failures aren't a big deal - Removed some usage of channel.channel_model - Fixed some Pylint warnings - Factored out the creation of test vectors Note: The SNR value for test_003_multiburst was slightly decreased, but it's still high and given the fixed seed, it also won't matter.
* runtime: gr_threading clutch obsolete; remove it and its usageMarcus Müller2018-11-121-3/+3
| | | | | | | | We essentially monkeypatched Python's `threading` module inelegantly to get around shortcomings in Python 2.3 and 2.4. Since support for these versions is long gone: removal of this clutch and its usage.
* Replace scipy/pylab where numpy/pyplot is sufficientMarcus Müller2018-11-021-3/+4
| | | | | | | | | This should reduce the number of times users are prompted to install pylab || scipy when they'd actually get away with functionality fully contained in numpy and matplotlib. This only solves the obvious cases. There's some usage of `pylab.mlab` that would need more than 20s of consideration.
* Fix invalid escape sequences.Clayton Smith2018-11-011-1/+1
|
* digital: cleanup pkt.py removalAndrej Rode2018-09-011-1/+0
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-3179-1734/+908
|\
| * removed pkt.py and docs to thatMarcus Müller2018-08-272-174/+0
| |
| * digital: qa_packet_format fix conditionals to wait for messagesAndrej Rode2018-08-251-3/+3
| |
| * Delete deprecated (q)d/qpsk and qam python hier blocks.Marcus Müller2018-08-233-326/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1081. These blocks were just overly specific wrappers for RRC + constellation decoders/encoders. With the nice constellation objects, no need to keep these around. Note that they are still in use as *possible* constellations (runtime-detected) in examples like narrowband/tunnel.py, but reducing these in functionality is inavoidable at this point. Progress of updating them is tracked in #1956.
| * python: replace unfunctional old_div with functional codeAndrej Rode2018-08-172-3/+3
| | | | | | | | | | | | | | | | | | | | 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
| * message: fix unit tests to respect mesage::to_string behaviourAndrej Rode2018-08-171-2/+2
| | | | | | | | | | | | | | | | | | Formerly to_string() returned a byte string in Python2 and a unicode string in Python3. To get the same behaviour for Python2 and Python3 the Unicode String in Python3 is converted to bytes. Which is a desired behaviour for to_string() since the carried payload of messages includes invalid unicode characters.
| * digital: handle unpacked bytes correctly in CRC32_bbAndrej Rode2018-07-121-7/+42
| |
| * digital: mpsk_snr_est: Fix QA for Py2/3 compatMartin Braun2018-06-301-9/+13
| | | | | | | | | | | | The test was relying on randint() to return the same integers, but since Python 3.2 it doesn't. Now, we create bits using random.random(), which will create reproducible bits across Python versions.
| * digital: Fix scrambler QAMartin Braun2018-06-271-2/+2
| |
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-2476-849/+949
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * python: Py3k compatAndrej Rode2018-06-231-2/+2
| | |
| | * Merge branch 'next' into python3Johnathan Corgan2017-08-271-1/+1
| | |\ | | | | | | | | | | | | | | | | Conflicts: volk
| | * \ Merge branch 'next' into python3Johnathan Corgan2017-05-011-0/+31
| | |\ \
| | * \ \ Merge branch 'next' into python3Johnathan Corgan2017-04-102-5/+53
| | |\ \ \
| | * \ \ \ Merge branch 'next' into python3Johnathan Corgan2017-03-201-4/+46
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-digital/python/digital/qa_packet_format.py
| | * | | | | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-2676-848/+951
| | | | | | |
| * | | | | | Merge branch 'master' into nextMartin Braun2018-02-038-10/+10
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| * | | | | | renamed fractional_{resampler|interpolator} to mmse_Marcus Müller2017-08-181-1/+1
| | |_|_|_|/ | |/| | | |
| * | | | | Merge branch 'master' into nextJohnathan Corgan2017-05-011-0/+31
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Merge branch 'master' into nextJohnathan Corgan2017-04-102-5/+53
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |