summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_moving_average.py
Commit message (Collapse)AuthorAgeFilesLines
* qa: run autopep8 formatting on qa python filesmormj2020-10-301-23/+30
| | | | | | 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-301-1/+1
|
* Move from SWIG to Pybind11Marcus Müller2020-06-191-3/+7
|\ | | | | | | | | | | Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
| * blocks: add pybind11 bindingsJosh Morman2020-06-041-3/+7
| |
* | blocks: qa_moving_average used tuple eq. for lists in pybind11Marcus Müller2020-06-191-1/+1
| |
* | blocks/moving_average: use vector functionsThomas Habets2020-06-151-3/+32
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves performance of moving average for me by about 4-5x. My test is [here](https://github.com/ThomasHabets/radiostuff/blob/master/amateur/listen_70cm.grc), which processes 10MHz to find the strongest signal. Without this PR I see `moving_average` in `top` taking about 89.4-94% CPU. With this patch it's ~20.4-23.7%. Since without this patch it's that high, I don't know that it's not even better. Test measured on a Libremv2 with Intel Core i7-6500U @ 2.5GHz. The memory access pattern is probably worse with this patch, but at least on my hardware on my workload this seems to be dwarfed by the gain of using volk. It can be hard to reason about memory access patterns, so benchmarks overrule theory. The test only actually uses float averaging. More benchmarking may be required. Possible improvements: * Add template specialization for `uint16` and `uint32`? * Refactor for non-volk fallback to use only one loop, with (presumably) better memory access pattern)
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* blocks: Give qa_moving_average.py a fixed random seedMartin Braun2018-12-171-3/+1
|
* Merge branch 'next' into python3Johnathan Corgan2017-10-051-1/+67
|\
| * Merge remote-tracking branch 'github/pr/1462'Johnathan Corgan2017-10-051-23/+24
| |\ | | | | | | | | | | | | Conflicts: gr-blocks/python/blocks/qa_moving_average.py
| | * removed print debugging in QA testMarcus Müller2017-09-261-5/+0
| | |
| | * Added a vector operation mode to the moving averageMarcus Müller2017-09-081-1/+37
| | | | | | | | | | | | | | | | | | This allows users to average per-element. Might be very useful for spectrum "condensing" and such.
| * | [gr-blocks] improve moving_average unit testSebastian Müller2017-09-301-0/+65
| |/
* / python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-0/+1
|/
* Merged next into uninstalled import branch.Ben Reynwar2013-04-021-4/+4
|
* blocks: Updating testing environment.Ben Reynwar2013-03-111-2/+2
|
* blocks: Enabling uninstalled python imports.Ben Reynwar2013-03-071-0/+91