Commit cbd6cbcc authored by Martin Reinecke's avatar Martin Reinecke
Browse files

revert unintended demo changes

parent 901bc10c
...@@ -53,7 +53,7 @@ if __name__ == '__main__': ...@@ -53,7 +53,7 @@ if __name__ == '__main__':
mask = np.ones(position_space.shape) mask = np.ones(position_space.shape)
elif mode == 1: elif mode == 1:
# Two dimensional regular grid with chess mask # Two dimensional regular grid with chess mask
position_space = ift.RGSpace([4096, 4096]) position_space = ift.RGSpace([128, 128])
mask = make_chess_mask(position_space) mask = make_chess_mask(position_space)
else: else:
# Sphere with half of its locations randomly masked # Sphere with half of its locations randomly masked
...@@ -95,7 +95,7 @@ if __name__ == '__main__': ...@@ -95,7 +95,7 @@ if __name__ == '__main__':
j = R.adjoint_times(N.inverse_times(data)) j = R.adjoint_times(N.inverse_times(data))
D_inv = R.adjoint(N.inverse(R)) + S.inverse D_inv = R.adjoint(N.inverse(R)) + S.inverse
# Make it invertible # Make it invertible
IC = ift.GradientNormController(iteration_limit=500, tol_abs_gradnorm=1e-3, name="blah") IC = ift.GradientNormController(iteration_limit=500, tol_abs_gradnorm=1e-3)
D = ift.InversionEnabler(D_inv, IC, approximation=S.inverse).inverse D = ift.InversionEnabler(D_inv, IC, approximation=S.inverse).inverse
# WIENER FILTER # WIENER FILTER
......
...@@ -95,7 +95,6 @@ if __name__ == '__main__': ...@@ -95,7 +95,6 @@ if __name__ == '__main__':
N_samples = 20 N_samples = 20
for i in range(2): for i in range(2):
metric = H(ift.Linearization.make_var(position)).metric metric = H(ift.Linearization.make_var(position)).metric
print(metric)
samples = [metric.draw_sample(from_inverse=True) samples = [metric.draw_sample(from_inverse=True)
for _ in range(N_samples)] for _ in range(N_samples)]
......
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