Commit 01cb0e3f authored by Philipp Arras's avatar Philipp Arras
Browse files

Simplify

parent 2e91f517
......@@ -360,7 +360,7 @@ def test_holo_from_correlations(nxdirty, nydirty, nchan, nrow, epsilon):
grid = np.random.randn(nx, ny) + 1.0j*np.random.randn(nx, ny)
W = conf.W()
res0 = np.zeros_like(grid)
for ii, (du, dv) in enumerate(product(*(2*(range(-W + 1, W),)))):
for du, dv in product(*(2*(range(-W + 1, W),))):
d = ng.get_correlations(bl, conf, idx, du=du, dv=dv)
res0 += d*np.roll(np.roll(grid, -du, axis=0), -dv, axis=1)
res1 = ng.apply_holo(bl, conf, idx, grid)
......
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