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
bb5cd1e6
Commit
bb5cd1e6
authored
Jun 05, 2017
by
Theo Steininger
Browse files
Fixed bug in _fft_module_checker.
parent
102c1aad
Pipeline
#13334
passed with stage
in 5 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/config/nifty_config.py
View file @
bb5cd1e6
...
...
@@ -35,14 +35,12 @@ dependency_injector = keepers.DependencyInjector(
def
_fft_module_checker
(
z
):
if
z
==
'fftw_mpi'
:
if
'fftw'
in
dependency_injector
:
if
lambda
z
:
hasattr
(
dependency_injector
[
'fftw'
],
'FFTW_MPI'
):
return
True
else
:
return
False
return
hasattr
(
dependency_injector
.
get
(
'fftw'
),
'FFTW_MPI'
)
if
z
==
'fftw'
:
return
'fftw'
in
dependency_injector
return
True
return
(
'fftw'
in
dependency_injector
)
if
z
==
'numpy'
:
return
True
return
False
# Initialize the variables
variable_fft_module
=
keepers
.
Variable
(
...
...
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