Skip to content
Snippets Groups Projects
Commit be7c497d authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed Field Tests.

parent 7c912416
Branches
Tags
2 merge requests!186Master,!184Real fft really integrated
Pipeline #
...@@ -22,6 +22,7 @@ import numpy as np ...@@ -22,6 +22,7 @@ import numpy as np
from numpy.testing import assert_,\ from numpy.testing import assert_,\
assert_almost_equal,\ assert_almost_equal,\
assert_allclose assert_allclose
from nose.plugins.skip import SkipTest
from itertools import product from itertools import product
...@@ -63,9 +64,12 @@ class Test_Functionality(unittest.TestCase): ...@@ -63,9 +64,12 @@ class Test_Functionality(unittest.TestCase):
def test_hermitian_decomposition(self, z1, z2, preserve, complexdata, def test_hermitian_decomposition(self, z1, z2, preserve, complexdata,
s1, s2): s1, s2):
np.random.seed(123) np.random.seed(123)
r1 = RGSpace(s1, harmonic=True, zerocenter=(z1,)) try:
r2 = RGSpace(s2, harmonic=True, zerocenter=(z2,)) r1 = RGSpace(s1, harmonic=True, zerocenter=(z1,))
ra = RGSpace(s1+s2, harmonic=True, zerocenter=(z1, z2)) r2 = RGSpace(s2, harmonic=True, zerocenter=(z2,))
ra = RGSpace(s1+s2, harmonic=True, zerocenter=(z1, z2))
except ValueError:
raise SkipTest
if preserve: if preserve:
complexdata=True complexdata=True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment