@@ -13,7 +13,7 @@ def test__neighbors__compare_to_mesh_util():
1313 # I12I13I14I15I
1414
1515 mesh = aa .Mesh2DRectangularUniform .overlay_grid (
16- shape_native = (7 , 5 ), grid = np .zeros ((2 , 2 )), buffer = 1e-8
16+ shape_native = (7 , 5 ), grid = aa . Grid2DIrregular ( np .zeros ((2 , 2 ) )), buffer = 1e-8
1717 )
1818
1919 (neighbors_util , neighbors_sizes_util ) = aa .util .mesh .rectangular_neighbors_from (
@@ -25,7 +25,7 @@ def test__neighbors__compare_to_mesh_util():
2525
2626
2727def test__edge_pixel_list ():
28- grid = np . array (
28+ grid = aa . Grid2DIrregular (
2929 [
3030 [- 1.0 , - 1.0 ],
3131 [- 1.0 , 0.0 ],
@@ -47,7 +47,7 @@ def test__edge_pixel_list():
4747
4848
4949def test__shape_native_and_pixel_scales ():
50- grid = np . array (
50+ grid = aa . Grid2DIrregular (
5151 [
5252 [- 1.0 , - 1.0 ],
5353 [- 1.0 , 0.0 ],
@@ -68,7 +68,7 @@ def test__shape_native_and_pixel_scales():
6868 assert mesh .shape_native == (3 , 3 )
6969 assert mesh .pixel_scales == pytest .approx ((2.0 / 3.0 , 2.0 / 3.0 ), 1e-2 )
7070
71- grid = np . array (
71+ grid = aa . Grid2DIrregular (
7272 [
7373 [1.0 , - 1.0 ],
7474 [1.0 , 0.0 ],
@@ -89,7 +89,7 @@ def test__shape_native_and_pixel_scales():
8989 assert mesh .shape_native == (5 , 4 )
9090 assert mesh .pixel_scales == pytest .approx ((2.0 / 5.0 , 2.0 / 4.0 ), 1e-2 )
9191
92- grid = np . array ([[2.0 , 1.0 ], [4.0 , 3.0 ], [6.0 , 5.0 ], [8.0 , 7.0 ]])
92+ grid = aa . Grid2DIrregular ([[2.0 , 1.0 ], [4.0 , 3.0 ], [6.0 , 5.0 ], [8.0 , 7.0 ]])
9393
9494 mesh = aa .Mesh2DRectangularUniform .overlay_grid (
9595 shape_native = (3 , 3 ), grid = grid , buffer = 1e-8
@@ -100,7 +100,7 @@ def test__shape_native_and_pixel_scales():
100100
101101
102102def test__pixel_centres__3x3_grid__pixel_centres ():
103- grid = np . array (
103+ grid = aa . Grid2DIrregular (
104104 [
105105 [1.0 , - 1.0 ],
106106 [1.0 , 0.0 ],
@@ -134,7 +134,7 @@ def test__pixel_centres__3x3_grid__pixel_centres():
134134 )
135135 )
136136
137- grid = np . array (
137+ grid = aa . Grid2DIrregular (
138138 [
139139 [1.0 , - 1.0 ],
140140 [1.0 , 0.0 ],
0 commit comments