diff --git a/src/extra.py b/src/extra.py index cffe912ee710d3f4e9e88ef5b46f2b11fd1571f5..c664b70393a4afb096813e29eb4c4d1825a4e936 100644 --- a/src/extra.py +++ b/src/extra.py @@ -318,7 +318,7 @@ def _linearization_value_consistency(op, loc): def _check_nontrivial_constant(op, loc, tol, ntries, only_r_differentiable, metric_sampling, max_combinations=np.inf): if isinstance(op.domain, DomainTuple): - return # FIXME ? + return keys = op.domain.keys() combis = [] for ll in range(1, len(keys)): diff --git a/test/test_operators/test_correlated_fields.py b/test/test_operators/test_correlated_fields.py index efa976cb6b4c372ee323134642983c00d6947157..69b706ed881fc9f48083b3fa9c77f33f3c7fe286 100644 --- a/test/test_operators/test_correlated_fields.py +++ b/test/test_operators/test_correlated_fields.py @@ -109,6 +109,6 @@ def testAmplitudesInvariants(sspace, N): for ampl in fa.normalized_amplitudes: ift.extra.check_operator(ampl, ift.from_random(ampl.domain), - ntries=3, max_combinations=5) + ntries=1, max_combinations=3) ift.extra.check_operator(op, ift.from_random(op.domain), - ntries=3, max_combinations=5) + ntries=1, max_combinations=5)