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
7c50e35f
Commit
7c50e35f
authored
Jul 13, 2017
by
Theo Steininger
Browse files
Applied some fixes to accomplish mpi tests.
parent
0ccd2278
Pipeline
#14843
passed with stages
in 12 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/power_space/power_indices.py
View file @
7c50e35f
...
...
@@ -300,6 +300,9 @@ class PowerIndices(object):
(
temp_uniqued_pindex
,
local_temp_pundex
)
=
np
.
unique
(
local_pindex
,
return_index
=
True
)
# cure a bug in numpy
# https://github.com/numpy/numpy/issues/9405
local_temp_pundex
=
np
.
asarray
(
local_temp_pundex
,
dtype
=
np
.
int
)
# Shift the local pundices by the nodes' local_dim_offset
local_temp_pundex
+=
global_pindex
.
distributor
.
local_dim_offset
...
...
test/test_spaces/test_power_space.py
View file @
7c50e35f
...
...
@@ -146,7 +146,8 @@ class PowerSpaceConsistencyCheck(unittest.TestCase):
distribution_strategy
=
distribution_strategy
,
logarithmic
=
logarithmic
,
nbin
=
nbin
,
binbounds
=
binbounds
)
assert_equal
(
p
.
pindex
.
flatten
()[
p
.
pundex
],
np
.
arange
(
p
.
dim
),
assert_equal
(
p
.
pindex
.
flatten
().
get_full_data
()[
p
.
pundex
],
np
.
arange
(
p
.
dim
),
err_msg
=
'pundex is not right-inverse of pindex!'
)
@
expand
(
CONSISTENCY_CONFIGS
)
...
...
@@ -155,7 +156,6 @@ class PowerSpaceConsistencyCheck(unittest.TestCase):
logarithmic
):
if
distribution_strategy
==
"fftw"
:
if
not
hasattr
(
gdi
.
get
(
'fftw'
),
'FFTW_MPI'
):
print
(
gdi
.
get
(
'fftw'
),
"blub
\n\n\n
"
)
raise
SkipTest
p
=
PowerSpace
(
harmonic_partner
=
harmonic_partner
,
distribution_strategy
=
distribution_strategy
,
...
...
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