Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
09c17c1e
Commit
09c17c1e
authored
Jan 17, 2019
by
Martin Reinecke
Browse files
Merge branch 'fft_tweaks' of gitlab.mpcdf.mpg.de:ift/nifty-dev into fft_tweaks
parents
fb4362ec
3ac479c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_fft_operator.py
View file @
09c17c1e
...
...
@@ -17,7 +17,7 @@
import
numpy
as
np
import
pytest
from
numpy.testing
import
assert_allclose
from
numpy.testing
import
assert_
,
assert_allclose
import
nifty5
as
ift
...
...
@@ -36,6 +36,16 @@ dtype = list2fixture([np.float64, np.float32, np.complex64, np.complex128])
op
=
list2fixture
([
ift
.
HartleyOperator
,
ift
.
FFTOperator
])
fftw
=
list2fixture
([
False
,
True
])
def
test_switch
():
ift
.
fft
.
enable_fftw
()
assert_
(
ift
.
fft
.
_use_fftw
is
True
)
ift
.
fft
.
disable_fftw
()
assert_
(
ift
.
fft
.
_use_fftw
is
False
)
ift
.
fft
.
enable_fftw
()
assert_
(
ift
.
fft
.
_use_fftw
is
True
)
@
pmp
(
'd'
,
[
0.1
,
1
,
3.7
])
def
test_fft1D
(
d
,
dtype
,
op
,
fftw
):
if
fftw
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment