Commit 6a914318 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

now testing whether one can create fields of objects

parent fdbf3fc0
......@@ -340,3 +340,9 @@ def test_funcs(num, dom, func):
res = getattr(f, func)()
res2 = getattr(np, func)(num)
assert_allclose(res.local_data, res2)
def test_field_of_objects():
arr = np.array(['x', 'y', 'z'])
sp = ift.RGSpace(3)
f = ift.Field.from_global_data(sp, arr)
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