Commit a14986b7 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fix test

parent 12219de3
Pipeline #25640 passed with stage
in 11 minutes and 53 seconds
...@@ -73,7 +73,7 @@ class Noise_Energy_Tests(unittest.TestCase): ...@@ -73,7 +73,7 @@ class Noise_Energy_Tests(unittest.TestCase):
inverter = ift.ConjugateGradient(IC) inverter = ift.ConjugateGradient(IC)
S = ift.create_power_operator(hspace, power_spectrum=_flat_PS) S = ift.create_power_operator(hspace, power_spectrum=_flat_PS)
D = ift.library.NonlinearWienerFilterEnergy( C = ift.library.NonlinearWienerFilterEnergy(
position=xi, position=xi,
d=d, d=d,
Instrument=R, Instrument=R,
...@@ -84,10 +84,9 @@ class Noise_Energy_Tests(unittest.TestCase): ...@@ -84,10 +84,9 @@ class Noise_Energy_Tests(unittest.TestCase):
S=S, S=S,
inverter=inverter).curvature inverter=inverter).curvature
energy0 = ift.library.NoiseEnergy( res_sample_list = [d - R(f(ht(C.draw_sample() + xi))) for _ in range(10)]
position=eta0, d=d, xi=xi, D=D, t=tau, Instrument=R,
alpha=alpha, q=q, Distributor=Dist, nonlinearity=f, energy0 = ift.library.NoiseEnergy(eta0, alpha, q, res_sample_list)
ht=ht, samples=10)
energy1 = energy0.at(eta1) energy1 = energy0.at(eta1)
a = (energy1.value - energy0.value) / eps a = (energy1.value - energy0.value) / eps
......
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