Commit e25b1855 authored by Simon Perkins's avatar Simon Perkins

comments

parent 66f4fe62
......@@ -63,10 +63,12 @@ def test_hoisted_grid_allocation(nxdirty, nydirty, nrow, nchan, epsilon):
user_grid = np.zeros((gconf.Nu(), gconf.Nv()),
dtype=np.complex128)
grid = ng.vis2grid_c(baselines, gconf, idx, vis, user_grid=None)
grid2 = ng.vis2grid_c(baselines, gconf, idx, vis, user_grid=user_grid)
# Almost same visibilities
assert_array_almost_equal(grid, grid2)
# Same grid object
assert id(grid2) == id(user_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