Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
ce771e6d
Commit
ce771e6d
authored
May 30, 2017
by
Martin Reinecke
Browse files
faster module availability tests
parent
b0d67512
Pipeline
#13149
passed with stage
in 6 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/transformations/rg_transforms.py
View file @
ce771e6d
...
...
@@ -208,7 +208,7 @@ class MPIFFT(Transform):
def
__init__
(
self
,
domain
,
codomain
):
if
'
fftw_mpi
'
not
in
gdi
:
if
fftw_mpi
is
None
:
raise
ImportError
(
"The MPI FFTW module is needed but not available."
)
...
...
@@ -576,7 +576,7 @@ class ScalarFFT(Transform):
Fourier-transformed pendant of the input field.
"""
# Enable caching
if
'
fftw_scalar
'
i
n
gdi
:
if
fftw_scalar
i
s
not
None
:
fftw_scalar
.
interfaces
.
cache
.
enable
()
# Check if the axes provided are valid given the shape
...
...
@@ -632,7 +632,7 @@ class ScalarFFT(Transform):
local_val
=
self
.
_apply_mask
(
temp_val
,
mask
,
axes
)
# perform the transformation
if
'
fftw_scalar
'
i
n
gdi
:
if
fftw_scalar
i
s
not
None
:
if
self
.
codomain
.
harmonic
:
result_val
=
fftw_scalar
.
interfaces
.
numpy_fft
.
fftn
(
local_val
,
axes
=
axes
)
else
:
...
...
Write
Preview
Supports
Markdown
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