Commit f5a758ef authored by Andrija Kostic's avatar Andrija Kostic
Browse files

Fixed bugs and adjusted tolerance for jacobian

parent d8155d47
Pipeline #70221 failed with stages
in 9 minutes and 6 seconds
......@@ -43,11 +43,11 @@ def field(request):
return ift.MultiField.from_dict({'s1': s})['s1']
def test_variablecovariancegaussian(field):
dc = {'a':field, 'b':field.exp()}
dc = {'a':field, 'b': field.exp()}
mf = ift.MultiField.from_dict(dc)
energy = ift.VariableCovarianceGaussianEnergy(field.domain,
residual='a', inverse_covariance='b')
ift.extra.check_jacobian_consistency(energy, mf)
ift.extra.check_jacobian_consistency(energy, mf, tol=1e-7)
def test_gaussian(field):
energy = ift.GaussianEnergy(domain=field.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