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__": ...@@ -55,7 +55,7 @@ if __name__ == "__main__":
ss = fft.adjoint_times(sh) ss = fft.adjoint_times(sh)
# Choosing the measurement instrument # 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 = ift.Field.ones(s_space)
diag.val[20:80, 20:80] = 0 diag.val[20:80, 20:80] = 0
Instrument = ift.DiagonalOperator(diag.weight(-1)) Instrument = ift.DiagonalOperator(diag.weight(-1))
...@@ -76,9 +76,9 @@ if __name__ == "__main__": ...@@ -76,9 +76,9 @@ if __name__ == "__main__":
# Choosing the minimization strategy # 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) 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) minimizer = ift.RelaxedNewton(controller=controller)
m0 = ift.Field.zeros(h_space) m0 = ift.Field.zeros(h_space)
# Initializing the Wiener Filter energy # Initializing the Wiener Filter energy
...@@ -89,7 +89,8 @@ if __name__ == "__main__": ...@@ -89,7 +89,8 @@ if __name__ == "__main__":
m = energy.position m = energy.position
D = energy.curvature D = energy.curvature
ift.plotting.plot(ss, name="signal.pdf", colormap="Planck-like") 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 # sampling the uncertainty map
sample_variance = ift.Field.zeros(s_space) 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