Commit 0b8d7056 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tweak tests

parent 06ec66b6
Pipeline #22368 failed with stage
in 4 minutes and 5 seconds
......@@ -139,11 +139,6 @@ class Field(object):
def _infer_dtype(dtype, val):
if val is None or dtype is not None:
return np.result_type(dtype, np.float64)
if isinstance(val, Field):
return val.dtype
return np.result_type(val, np.float64)
if dtype is not None:
return dtype
if val is None:
......@@ -125,7 +125,7 @@ class FFTOperatorTests(unittest.TestCase):
b = ift.HPSpace(nside=lm//2)
fft = ift.FFTOperator(domain=a, target=b)
inp = ift.Field.from_random(domain=a, random_type='normal',
std=1, mean=0, dtype=tp)
std=1, mean=0.1, dtype=tp)
out = fft.times(inp)
v1 = np.sqrt(out.vdot(out))
v2 = np.sqrt(inp.vdot(fft.adjoint_times(out)))
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