Commit 2da37399 authored by Vincent Eberle's avatar Vincent Eberle
Browse files

cosmnetics

parent 68731e4f
Pipeline #67718 passed with stages
in 15 minutes and 25 seconds
......@@ -56,9 +56,7 @@ def test_ScaledEnergy(field, icov):
lin = ift.Linearization.make_var(field, want_metric=True)
met1 = energy(lin).metric
sE = energy.scale(0.3)
linn = sE(lin)
met2 = linn.metric
met2 = energy.scale(0.3)(lin).metric
np.testing.assert_allclose(met1(field).val, met2(field).val / 0.3, rtol=1e-12)
met2.draw_sample()
......
Markdown is supported
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