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
ea9b75ba
Commit
ea9b75ba
authored
Aug 15, 2017
by
Theo Steininger
Browse files
Fixed RGSpace Tests
parent
8d2916d7
Pipeline
#16547
failed with stages
in 5 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_spaces/test_rg_space.py
View file @
ea9b75ba
...
...
@@ -27,6 +27,7 @@ from numpy.testing import assert_, assert_equal, assert_almost_equal
from
nifty
import
RGSpace
from
test.common
import
expand
from
itertools
import
product
from
nose.plugins.skip
import
SkipTest
# [shape, zerocenter, distances, harmonic, expected]
CONSTRUCTOR_CONFIGS
=
[
...
...
@@ -158,7 +159,10 @@ class RGSpaceFunctionalityTests(unittest.TestCase):
(
4
,
6
,
8
),
(
17
,
5
,
3
)],
[
True
,
False
]))
def
test_hermitianize_inverter
(
self
,
shape
,
zerocenter
):
r
=
RGSpace
(
shape
,
harmonic
=
True
,
zerocenter
=
zerocenter
)
try
:
r
=
RGSpace
(
shape
,
harmonic
=
True
,
zerocenter
=
zerocenter
)
except
ValueError
:
raise
SkipTest
v
=
distributed_data_object
(
global_shape
=
shape
,
dtype
=
np
.
complex128
)
v
[:]
=
np
.
random
.
random
(
shape
)
+
1j
*
np
.
random
.
random
(
shape
)
inverted
=
r
.
hermitianize_inverter
(
v
,
axes
=
range
(
len
(
shape
)))
...
...
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