summaryrefslogtreecommitdiff
path: root/gr-fft/python/fft
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>
* fft: pep8 formattingJosh Morman2021-11-242-21/+29
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* gr-fft: add "shift" param to logpwrfft blockJeff Long2021-08-231-3/+3
| | | | | | Contributed by Marcus Leech Signed-off-by: Jeff Long <willcode4@gmail.com>
* Fix typosluz paz2021-02-081-1/+1
| | | | | | | | Found via `codespell v2.1.dev0` `codespell -q 3 -L ans,fo,hist,inout,ist,ith,nd,sinc,uint -S ./volk` Signed-off-by: luz paz <luzpaz@users.noreply.github.com> Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* gr-fft: window cleanup - remove nuttal (sic) windowsJacob Gilbert2021-01-252-23/+1
| | | | | | These have been deprecated for over 6 years Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-fft: cleanup window related codeJacob Gilbert2021-01-252-20/+37
| | | | | | Updates some documentation, and adds bindings for tukey and gaussian windows which had not been included when they were added Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-fft: adding additional window options to win_type enumJacob Gilbert2021-01-251-13/+23
| | | | | | Adding Nuttall, Welch, Parzen, Exponential, Riemann, Gaussian, and Tukey window options to the win_type enum for use with the various filter design functions Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-fft: Log Power FFT Python fixJeff Long2021-01-161-2/+3
| | | | | | | Block would fail as soon as it was placed in GRC. A couple of imports/renames were needed. Signed-off-by: Jeff Long <willcode4@gmail.com>
* fft: update window python enums to fft.window.*Josh Morman2020-12-171-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* fft: populate window enums under fft.windowJosh Morman2020-12-171-16/+14
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* Move FFT functions and blocks to templates (#3903)mormj2020-11-0313-436/+89
| | | | | | | | | | | | | * fft: refactor fft classes as templates In order to reduce code duplication construct fft objects and blocks with template paramters. Separate forward and reverse as a template parameter Maintain the real fft block forward as r2c and reverse as r2c as well Co-authored-by: Andrej Rode <mail@andrejro.de>
* qa: run autopep8 formatting on qa python filesmormj2020-10-303-13/+85
| | | | | | 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-302-2/+2
|
* 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
* fft&filter: Remove malloc_complex/freeThomas Habets2020-09-082-14/+1
|
* fft: window: Allow normalizing windowsMartin Braun2020-08-142-2/+40
| | | | | | | | In some applications, it is useful to generate windows that have unit power. The boxcar window (rectangle) is always of unit power, but the other windows are not, leading to apple-to-oranges comparisons, e.g., when switching between window types in a live spectrum estimation application.
* fft: window: Provide default value for beta param on window::buildMartin Braun2020-08-141-1/+1
| | | | | | | | | | | | The API call fft::window::build() takes a third parameter, beta, that only applies for the Kaiser window. For other windows, it is necessary to provide a dummy value to call this function. The declared-deprecated version firdes::window() on the other hand does not require specifying beta when not needed. Instead, we provide a default value of 6.76 which will still generate a valid (and generally useful) Kaiser window, but means we don't have to specify beta for other windows.
* fft: window: Add WIN_NONEMartin Braun2020-08-141-1/+1
| | | | | fft::window is slated to replace firdes::window, we add the missing WIN_NONE for consistency between the two.
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-034-6/+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: add hash check to binding file creation (#3472)mormj2020-06-049-9/+73
|
* fft: add pybind11 bindingsJosh Morman2020-06-0422-10/+1157
|
* Update license header to SPDX formatdevnulling2020-01-275-64/+5
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-315-29/+37
|\
| * Merge branch 'next' into python3Johnathan Corgan2017-08-141-2/+2
| |\ | | | | | | | | | | | | Conflicts: gr-fft/python/fft/logpwrfft.py
| | * Merge branch 'master' into nextJohnathan Corgan2017-08-141-2/+2
| | |\
| * | | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-265-28/+37
| |/ /
| * | 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.
* | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+3
| |/ |/|
* | logpwrfft did `ref_scale/2`, which led to integer div in Py2Marcus Müller2017-08-141-2/+2
|/ | | | | | That is especially hurt as the GRC template puts defaults to `ref_scale=2` (int literal!) and if someone uses `1`, they'll get zero internally in logpwrfft, and that leads to errors.
* Fix the VOLKized fft_vcc_fftw and QA codeDoug Geiger2015-09-211-4/+60
| | | | | | | The QA code did not cover all the cases being VOLKized, and thus failed to notice the incorrect pointer math. This QA code (correctly!) fails on the previous commit, and (correctly!) passes with this fix to fft_vcc_fftw.cc. Thanks to awalls-cx18 for noticing this, and providing the correct array indexing call to VOLK. Fixes issue #844
* Fix up QA tests: test windowing functionDoug Geiger2015-09-171-153/+107
| | | | | | | Add a QA test for a real windowing function (hamming in this case). Move common code to setUp method. Remove unused method. Minor spacing fixes for readability.
* Tabs -> spacesDoug Geiger2015-09-171-5/+5
|
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-6/+6
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* Add a QA_PYTHON_EXECUTABLE variable so QA code knows what python to use when ↵Philip Balister2013-12-051-1/+1
| | | | | | | | | | | | cross compiling. With this (and the prior) patch, you can mount the compile directory on the target and run the QA code (as long as the paths are the same). The qtgui tests fail if there is no X server. Volk seems to fail for hard float builds. We'll need to look at adding thes changes to gr_modtool. Signed-off-by: Philip Balister <philip@balister.org>
* fft: fixed logpwrfft.py to import new C++ window properly from fft_swig ↵Tom Rondeau2013-11-101-1/+1
| | | | (fixes issue #609 reported by Sylvain Munaut).
* fft: Moved all window building functions into C++.Tom Rondeau2013-11-053-182/+0
| | | | | | | | | | | | Remove window.py. All windows built using C++ functions. Exported into Python in same module (from gnuradio.fft import window). Removed all window building work in firdes, too. firdes.window now makes a direct call to fft.window.build with same parameters. Added documentation for window functions, including references to where to find coefficients and equations for (most of) the windows. All changes should not affect existing code. f
* Removing gruel from QA python paths.Ben Reynwar2013-06-061-1/+0
|
* uninstalled imports: Fixing up after merge with master.Ben Reynwar2013-06-031-1/+1
|
* Merged in next_docs branch.Ben Reynwar2013-05-191-2/+1
|
* Merged next into uninstalled import branch.Ben Reynwar2013-04-022-9/+9
|
* fft: Updating testing environment.Ben Reynwar2013-03-103-18/+14
|
* fft: Enabling uninstalled python imports.Ben Reynwar2013-03-076-0/+720