Commit 2c9cf99f authored by Martin Reinecke's avatar Martin Reinecke

adjust to new gridder interface

parent 9df6b03c
Pipeline #50117 canceled with stages
in 3 minutes and 24 seconds
......@@ -27,7 +27,9 @@ for ii in range(10, 26):
img = ift.from_global_data(uvspace, img)
t0 = time()
GM = ift.GridderMaker(uvspace, eps=1e-7, uvw=uvw, channel_fact=np.array([1.]))
GM = ift.GridderMaker(uvspace, eps=1e-7, uvw=uvw,
channel_fact=np.array([1.]),
flags=np.zeros((N,1), dtype=np.bool))
vis = ift.from_global_data(visspace, vis)
op = GM.getFull().adjoint
t1 = time()
......
......@@ -40,7 +40,8 @@ def test_gridding(nu, nv, N, eps):
# Nifty
GM = ift.GridderMaker(ift.RGSpace((nu, nv)), uvw=uvw,
channel_fact=np.array([1.]), eps=eps)
channel_fact=np.array([1.]), eps=eps,
flags=np.zeros((N,1), dtype=np.bool))
vis2 = ift.from_global_data(ift.UnstructuredDomain(vis.shape), vis)
Op = GM.getFull()
......@@ -61,7 +62,8 @@ def test_gridding(nu, nv, N, eps):
def test_build(nu, nv, N, eps):
dom = ift.RGSpace([nu, nv])
uvw = np.random.rand(N, 3) - 0.5
GM = ift.GridderMaker(dom, uvw=uvw, channel_fact=np.array([1.]), eps=eps)
GM = ift.GridderMaker(dom, uvw=uvw, channel_fact=np.array([1.]), eps=eps,
flags=np.zeros((N,1), dtype=np.bool))
R0 = GM.getGridder()
R1 = GM.getRest()
R = R1@R0
......
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