Commit e25b1855 authored by Simon Perkins's avatar Simon Perkins
Browse files


parent 66f4fe62
......@@ -63,10 +63,12 @@ def test_hoisted_grid_allocation(nxdirty, nydirty, nrow, nchan, epsilon):
user_grid = np.zeros((gconf.Nu(), gconf.Nv()),
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)
Supports Markdown
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