Commit f43366ed authored by Martin Reinecke's avatar Martin Reinecke
Browse files

bug fix

parent d7aaaea0
......@@ -270,8 +270,8 @@ for op in ["__iadd__", "__isub__", "__imul__", "__idiv__",
for f in ["sqrt", "exp", "log", "tanh"]:
def func(f):
def func2(self):
fu = getattr(dobj, f)
fu = getattr(Field, f)
return MultiField(self.domain,
tuple(func2(val) for val in self.values()))
tuple(fu(val) for val in self.values()))
return func2
setattr(MultiField, f, func(f))
......@@ -31,6 +31,11 @@ class Test_Functionality(unittest.TestCase):
f2 = ift.from_random("normal", domain=dom, dtype=np.complex128)
assert_allclose(f1.vdot(f2), np.conj(f2.vdot(f1)))
def test_func(self):
f1 = ift.from_random("normal", domain=dom, dtype=np.complex128)
def test_dataconv(self):
f1 = ift.full(dom, 27)
f2 = ift.from_global_data(dom, f1.to_global_data())
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