Skip to content
GitLab
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
47229552
Commit
47229552
authored
May 11, 2017
by
Reimar H Leike
Browse files
now only testing fftw distribution strategy if available
parent
247e1e05
Pipeline
#12324
failed with stage
in 4 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_spaces/test_power_space.py
View file @
47229552
...
...
@@ -28,7 +28,8 @@ from nifty import PowerSpace, RGSpace, Space, LMSpace
from
types
import
NoneType
from
test.common
import
expand
from
itertools
import
product
,
chain
#needed to check wether fftw is available
from
d20.config
import
dependency_injector
as
gdi
HARMONIC_SPACES
=
[
RGSpace
((
8
,),
harmonic
=
True
),
RGSpace
((
7
,
8
),
harmonic
=
True
),
RGSpace
((
5
,
5
),
harmonic
=
True
),
RGSpace
((
4
,
5
,
7
),
harmonic
=
True
),
LMSpace
(
6
),
LMSpace
(
9
)]
...
...
@@ -36,8 +37,10 @@ LMSpace(6),LMSpace(9)]
#Try all sensible kinds of combinations of spaces, distributuion strategy and
#binning parameters
CONSISTENCY_CONFIGS_IMPLICIT
=
product
(
HARMONIC_SPACES
,
[
"not"
,
"equal"
,
"fftw"
],
[
None
],
[
None
,
3
,
4
],
[
True
,
False
])
CONSISTENCY_CONFIGS_EXPLICIT
=
product
(
HARMONIC_SPACES
,
[
"not"
,
"equal"
,
"fftw"
],
[[
0.
,
1.3
]],[
None
],[
False
])
_maybe_fftw
=
[
"fftw"
]
if
(
'pyfftw'
in
gdi
)
else
[]
CONSISTENCY_CONFIGS_IMPLICIT
=
product
(
HARMONIC_SPACES
,
[
"not"
,
"equal"
]
+
_maybe_fftw
,
[
None
],
[
None
,
3
,
4
],
[
True
,
False
])
CONSISTENCY_CONFIGS_EXPLICIT
=
product
(
HARMONIC_SPACES
,
[
"not"
,
"equal"
]
+
_maybe_fftw
,
[[
0.
,
1.3
]],[
None
],[
False
])
CONSISTENCY_CONFIGS
=
chain
(
CONSISTENCY_CONFIGS_IMPLICIT
,
CONSISTENCY_CONFIGS_EXPLICIT
)
# [harmonic_partner, distribution_strategy,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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