Commit 8301906c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 011fe3fa
Pipeline #20052 passed with stage
in 4 minutes and 53 seconds
......@@ -55,7 +55,7 @@ if __name__ == "__main__":
ss = fft.adjoint_times(sh)
# Choosing the measurement instrument
#Instrument = ift.FFTSmoothingOperator(s_space, sigma=0.05)
# Instrument = ift.FFTSmoothingOperator(s_space, sigma=0.05)
diag = ift.Field.ones(s_space)
diag.val[20:80, 20:80] = 0
Instrument = ift.DiagonalOperator(diag.weight(-1))
......@@ -76,9 +76,9 @@ if __name__ == "__main__":
# Choosing the minimization strategy
ctrl = ift.GradientNormController(verbose=True,tol_abs_gradnorm=0.1)
ctrl = ift.GradientNormController(verbose=True, tol_abs_gradnorm=0.1)
inverter = ift.ConjugateGradient(controller=ctrl)
controller = ift.GradientNormController(verbose=True,tol_abs_gradnorm=0.1)
controller = ift.GradientNormController(verbose=True, tol_abs_gradnorm=0.1)
minimizer = ift.RelaxedNewton(controller=controller)
m0 = ift.Field.zeros(h_space)
# Initializing the Wiener Filter energy
......@@ -89,7 +89,8 @@ if __name__ == "__main__":
m = energy.position
D = energy.curvature
ift.plotting.plot(ss, name="signal.pdf", colormap="Planck-like")
ift.plotting.plot(fft.inverse_times(m), name="m.pdf", colormap="Planck-like")
ift.plotting.plot(fft.inverse_times(m), name="m.pdf",
colormap="Planck-like")
# sampling the uncertainty map
sample_variance = ift.Field.zeros(s_space)
......
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