summaryrefslogtreecommitdiff
path: root/numpy/fft/tests
Commit message (Collapse)AuthorAgeFilesLines
* TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-111-1/+2
|
* index_tricks.py file not modifiedshubham119411402021-08-191-1/+1
|
* MAINT: Remove users of `numpy.compat.integer_types`Eric Wieser2020-08-311-3/+2
| | | | Some more Python 2 cleanup
* ENH: add `norm=forward,backward` to numpy.fft functions (#16476)Chris Vavaliaris2020-07-121-15/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kwarg option norm=inverse leads to scaling of the transforms inverse (opposite) to that of the default option norm=None; i.e. the forward transform is normalized with 1/n whereas the backward one with 1. The fft routines and their tests have been modified to reflect the changes; all tests have been passed successfully. Closes #16126 * modified _unitary, fft & ifft and their tests; tests passed * modified rfft & irfft and their tests; tests passed * modified hfft & ihfft and all tests; all modifications are now done * correction in ihfft; all 79 fft tests passed successfully * undo unnecessary docstrings changes made in my previous commits * use norm=forward kwarg value name * Update numpy/fft/__init__.py Co-authored-by: Leo Fang <leofang@bnl.gov> * add code review suggestions Co-authored-by: Leo Fang <leofang@bnl.gov> * add default norm=None alias norm=backward * streamline private normalization functions * modify hermitian FFTs * add review suggestions Co-authored-by: Leo Fang <leofang@bnl.gov> * add review suggestions v2 (dict as module const) * make review suggestions v3 * Apply suggestions from code review Co-authored-by: Leo Fang <leofang@bnl.gov>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-062-2/+1
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* MAINT: Remove sys.version checks in testsSeth Troisi2020-01-151-4/+1
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-052-7/+7
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-032-3/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUG: Better err message for normEric Larson2019-08-081-3/+7
|
* Incremented _tol my factor of 8.Oleksandr Pavlyk2019-08-011-1/+2
|
* Replaced np.sqrt(X.size) with np.sqrt(np.log2(X.size)) per PR reviewOleksandr Pavlyk2019-08-011-1/+1
|
* Replaced assert_array_almost_equal with assert_allcloseOleksandr Pavlyk2019-08-011-60/+63
| | | | | | | | | | Relaxed test_fft_with_order for float32. Infinity norm round-off error of FFT is shown in G.U. Ramos, "Roundoff Error Analyss of the Fast Fourier Transform," Mathematics of Computation, vol. 25, no. 116, Oct. 1971, p. 757 to be bounded by sqrt(N)*K*eps.
* TST: Added test_fftpocket.py::test_axesOleksandr Pavlyk2019-04-171-0/+10
| | | | | Test for ND transforms with axes for invariance of permutation of axes.
* SpellingRoman Yurchak2019-01-091-1/+1
|
* TST Check FFT for C/Fortran ordered and non contigous arraysRoman Yurchak2019-01-091-0/+38
|
* tweak testMartin Reinecke2019-01-081-5/+7
|
* fix #12663Martin Reinecke2019-01-081-0/+8
| | | | | | | | | | | | tweak and add test better fix fix cleanup, additional test fix test
* replace fftpack with pocketfftMartin Reinecke2018-12-252-79/+10
|
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-062-11/+2
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* ENH: Implement fft.fftshift/ifftshift with np.roll for improved performance ↵Gaspar Karm2018-01-161-8/+102
| | | | | | (#10073) See the PR for benchmarking information
* TST, MAINT: Add `__init__.py` files to tests directories.Charles Harris2017-08-061-0/+0
| | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available.
* TST: Remove unittest dependencies in numpy/fft/tests.Charles Harris2017-07-242-22/+26
|
* MAINT: Remove shebang from test modulesSami Salonen2017-01-151-1/+0
|
* BUG: correct norm='ortho' scaling for rfft when n != NoneGregory R. Lee2017-01-041-3/+25
| | | | closes #8444
* Dropping dict like behavior and relying on explicit methods.Lion Krischer2016-06-081-59/+51
|
* ENH: Changing FFT cache to a bounded LRU cacheLion Krischer2016-06-061-0/+87
| | | | | | | | Replaces the simple dictionary caches for the twiddle factors of numpy.fft to bounded LRU (least recently used) caches. The caches can thus no longer grow without bounds. See #7686.
* ENH: Add a norm keyword and tests for fft transformsJoseph Martinot-Lagarde2015-06-211-3/+94
|
* Merge pull request #5035 from juliantaylor/fft-testseberg2014-09-031-1/+1
|\ | | | | TST: join fft threads before getting values
| * TST: join fft threads before getting valuesJulian Taylor2014-09-031-1/+1
| | | | | | | | avoids timeouts on slow machines
* | STY: minor PEP8 fixups for numpy/fft.Charles Harris2014-07-311-2/+2
|/
* TST: reduce memory usage of fft testJulian Taylor2014-05-161-3/+5
| | | | | tests should not use more than 500 MB of memory, this one uses more than a GB. Also it didn't join its threads.
* Make TestFFTThreadSafe tests Py3-compatibleAlex Stewart2014-05-061-7/+16
|
* Added regression tests for #4655Alex Stewart2014-05-061-1/+38
|
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-1/+1
| | | | | | | Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
* 2to3: Apply `print` fixer.Charles Harris2013-04-062-2/+2
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-2/+4
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* TST: Add a test for the rfftfreq() functionendolith2012-11-251-0/+11
|
* STY: Code cleanups.Charles Harris2012-03-052-23/+29
| | | | Don't do from numpy.testing import *, put spaces after commas, etc.
* BUG: Fix bug in irfftn.Henry Gomersall2012-03-051-16/+29
|
* BUG: Make fftshift and ifftshift accept integer arguments for the axesCharles Harris2010-05-101-0/+8
| | | | | value. The functions now match their documentation. Fixes ticket #1182, patch from rgommers.
* DEP: Fix more files for unittest deprecated functions. It isn't clear why theseCharles Harris2010-02-211-1/+1
| | | | tests didn't issue deprecation warnings. Are they being run?
* Removed unused imports.Alan McIntyre2008-09-092-2/+0
|
* Clean up test output such that a completely-passing test suite has no ↵Robert Kern2008-07-032-4/+0
| | | | extraneous output.
* Restore old test framework classes.Alan McIntyre2008-06-212-2/+2
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-172-13/+15
| | | | modules.
* janitorial workJarrod Millman2007-12-291-7/+7
|
* Increase test code coverage. Add documentation.Stefan van der Walt2007-12-031-2/+14
|
* Rename test classes to CapWords.Stefan van der Walt2007-10-022-3/+3
|
* Add test for fftpack.Stefan van der Walt2006-11-201-0/+12
|