Commit 7aff191c authored by Reimar H Leike's avatar Reimar H Leike
Browse files

now testing whether fields cna be created from all three random types

parent 6a914318
......@@ -341,6 +341,11 @@ def test_funcs(num, dom, func):
res2 = getattr(np, func)(num)
assert_allclose(res.local_data, res2)
@pmp('rtype', ['normal', 'pm1', 'uniform'])
@pmp('dtype', [np.float64, np.complex128])
def test_from_random(rtype, dtype):
sp = ift.RGSpace(3)
f = ift.Field.from_random(rtype, sp, dtype=dtype)
def test_field_of_objects():
arr = np.array(['x', 'y', 'z'])
Supports Markdown
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