Commit 1e1c1197 authored by Theo Steininger's avatar Theo Steininger

Enhanced test/

parent 4e4e0be4
...@@ -29,7 +29,8 @@ from itertools import product ...@@ -29,7 +29,8 @@ from itertools import product
from nifty import Field,\ from nifty import Field,\
RGSpace,\ RGSpace,\
LMSpace,\ LMSpace,\
PowerSpace PowerSpace,\
from d2o import distributed_data_object from d2o import distributed_data_object
...@@ -93,11 +94,14 @@ class Test_Functionality(unittest.TestCase): ...@@ -93,11 +94,14 @@ class Test_Functionality(unittest.TestCase):
@expand(product([RGSpace((8,), harmonic=True, @expand(product([RGSpace((8,), harmonic=True,
zerocenter=False), zerocenter=False),
RGSpace((8, 8), harmonic=True, distances=0.123, RGSpace((8, 8), harmonic=True, distances=0.123,
zerocenter=True)], zerocenter=False)],
[RGSpace((8,), harmonic=True, [RGSpace((8,), harmonic=True,
zerocenter=False), zerocenter=False),
LMSpace(12)])) LMSpace(12)],
def test_power_synthesize_analyze(self, space1, space2): ['real', 'complex']))
def test_power_synthesize_analyze(self, space1, space2, base):
nifty_configuration['harmonic_rg_base'] = base
p1 = PowerSpace(space1) p1 = PowerSpace(space1)
spec1 = lambda k: 42/(1+k)**2 spec1 = lambda k: 42/(1+k)**2
fp1 = Field(p1, val=spec1) fp1 = Field(p1, val=spec1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment