Skip to content
Snippets Groups Projects
Commit 0b8d7056 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tweak tests

parent 06ec66b6
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -139,11 +139,6 @@ class Field(object):
@staticmethod
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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment