Commit 8d513a11 authored by Philipp Arras's avatar Philipp Arras
Browse files


parent 392d8890
Pipeline #97933 passed with stages
in 11 minutes and 51 seconds
...@@ -61,7 +61,7 @@ def test_complex2real(): ...@@ -61,7 +61,7 @@ def test_complex2real():
assert np.all((f == op(op.adjoint_times(f))).val) assert np.all((f == op(op.adjoint_times(f))).val)
def energy_tester(pos, get_noisy_data, energy_initializer, assume_diagonal=None): def energy_tester(pos, get_noisy_data, energy_initializer, assume_diagonal=False):
if isinstance(pos, ift.Field): if isinstance(pos, ift.Field):
if np.issubdtype(pos.dtype, np.complexfloating): if np.issubdtype(pos.dtype, np.complexfloating):
op = _complex2real(pos.domain) op = _complex2real(pos.domain)
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