@@ -62,7 +62,7 @@ def test__5_simple_grid__no_sub_grid(self):
6262 assert mapper .shape_2d == (3 , 3 )
6363 assert (mapper .hyper_image == np .ones ((2 , 2 ))).all ()
6464
65- reg = aa .reg .instance (coefficient = 1.0 )
65+ reg = aa .reg .Constant (coefficient = 1.0 )
6666 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
6767
6868 assert (
@@ -175,7 +175,7 @@ def test__15_grid__no_sub_grid(self):
175175 ).all ()
176176 assert mapper .shape_2d == (3 , 3 )
177177
178- reg = aa .reg .instance (coefficient = 1.0 )
178+ reg = aa .reg .Constant (coefficient = 1.0 )
179179 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
180180
181181 assert (
@@ -287,7 +287,7 @@ def test__5_simple_grid__include_sub_grid(self):
287287 ).all ()
288288 assert mapper .shape_2d == (3 , 3 )
289289
290- reg = aa .reg .instance (coefficient = 1.0 )
290+ reg = aa .reg .Constant (coefficient = 1.0 )
291291 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
292292
293293 assert (
@@ -372,7 +372,7 @@ def test__grid__requires_border_relocation(self):
372372 ).all ()
373373 assert mapper .shape_2d == (3 , 3 )
374374
375- reg = aa .reg .instance (coefficient = 1.0 )
375+ reg = aa .reg .Constant (coefficient = 1.0 )
376376 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
377377
378378 assert (
@@ -432,7 +432,7 @@ def test__interferometer(self):
432432 grid = grid , sparse_grid = None , inversion_uses_border = False
433433 )
434434
435- reg = aa .reg .instance (coefficient = 0.0 )
435+ reg = aa .reg .Constant (coefficient = 0.0 )
436436
437437 visibilities = aa .visibilities .manual_1d (
438438 visibilities = [
@@ -547,7 +547,7 @@ def test__3x3_simple_grid(self):
547547 )
548548 ).all ()
549549
550- reg = aa .reg .instance (coefficient = 1.0 )
550+ reg = aa .reg .Constant (coefficient = 1.0 )
551551 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
552552
553553 assert (
@@ -639,7 +639,7 @@ def test__3x3_simple_grid__include_mask(self):
639639 )
640640 ).all ()
641641
642- reg = aa .reg .instance (coefficient = 1.0 )
642+ reg = aa .reg .Constant (coefficient = 1.0 )
643643 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
644644
645645 assert (
@@ -748,7 +748,7 @@ def test__3x3_simple_grid__include_mask_and_sub_grid(self):
748748 )
749749 ).all ()
750750
751- reg = aa .reg .instance (coefficient = 1.0 )
751+ reg = aa .reg .Constant (coefficient = 1.0 )
752752 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
753753
754754 assert (
@@ -838,7 +838,7 @@ def test__3x3_simple_grid__include_mask_with_offset_centre(self):
838838 )
839839 ).all ()
840840
841- reg = aa .reg .instance (coefficient = 1.0 )
841+ reg = aa .reg .Constant (coefficient = 1.0 )
842842 regularization_matrix = reg .regularization_matrix_from_mapper (mapper = mapper )
843843
844844 assert (
@@ -896,7 +896,7 @@ def test__interferometer(self):
896896 grid = grid , sparse_grid = sparse_grid , inversion_uses_border = False
897897 )
898898
899- reg = aa .reg .instance (coefficient = 0.0 )
899+ reg = aa .reg .Constant (coefficient = 0.0 )
900900
901901 visibilities = aa .visibilities .manual_1d (
902902 visibilities = [
0 commit comments