@@ -99,7 +99,7 @@ class SphProfile(GeometryProfile):
9999 def __init__ (self , centre : Tuple [float , float ] = (0.0 , 0.0 )):
100100 super ().__init__ (centre = centre )
101101
102- @aa .grid_dec .to_array
102+ @aa .decorators .to_array
103103 def radial_grid_from (self , grid : aa .type .Grid2DLike , xp = np , ** kwargs ) -> np .ndarray :
104104 """
105105 Convert a grid of (y, x) coordinates, to their radial distances from the profile
@@ -126,7 +126,7 @@ def angle_to_profile_grid_from(
126126 """
127127 return xp .cos (grid_angles ), xp .sin (grid_angles )
128128
129- @aa .grid_dec .to_grid
129+ @aa .decorators .to_grid
130130 def _cartesian_grid_via_radial_from (
131131 self ,
132132 grid : aa .type .Grid2DLike ,
@@ -153,7 +153,7 @@ def _cartesian_grid_via_radial_from(
153153
154154 return xp .multiply (radius [:, None ], xp .vstack ((sin_theta , cos_theta )).T )
155155
156- @aa .grid_dec .to_grid
156+ @aa .decorators .to_grid
157157 def transformed_to_reference_frame_grid_from (self , grid , xp = np , ** kwargs ):
158158 """
159159 Transform a grid of (y,x) coordinates to the reference frame of the profile.
@@ -167,7 +167,7 @@ def transformed_to_reference_frame_grid_from(self, grid, xp=np, **kwargs):
167167 """
168168 return xp .subtract (grid .array , xp .array (self .centre ))
169169
170- @aa .grid_dec .to_grid
170+ @aa .decorators .to_grid
171171 def transformed_from_reference_frame_grid_from (self , grid , xp = np , ** kwargs ):
172172 """
173173 Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer
@@ -282,7 +282,7 @@ def angle_to_profile_grid_from(self, grid_angles, xp=np, **kwargs):
282282 theta_coordinate_to_profile = xp .add (grid_angles , - self .angle_radians (xp = xp ))
283283 return xp .cos (theta_coordinate_to_profile ), xp .sin (theta_coordinate_to_profile )
284284
285- @aa .grid_dec .to_grid
285+ @aa .decorators .to_grid
286286 def rotated_grid_from_reference_frame_from (
287287 self , grid , xp = np , angle : Optional [float ] = None , ** kwargs
288288 ):
@@ -313,7 +313,7 @@ def rotated_grid_from_reference_frame_from(
313313 grid_2d = grid , centre = (0.0 , 0.0 ), angle = angle , xp = xp
314314 )
315315
316- @aa .grid_dec .to_array
316+ @aa .decorators .to_array
317317 def elliptical_radii_grid_from (
318318 self , grid : aa .type .Grid2DLike , xp = np , ** kwargs
319319 ) -> np .ndarray :
@@ -332,7 +332,7 @@ def elliptical_radii_grid_from(
332332 )
333333 )
334334
335- @aa .grid_dec .to_array
335+ @aa .decorators .to_array
336336 def eccentric_radii_grid_from (
337337 self , grid : aa .type .Grid2DLike , xp = np , ** kwargs
338338 ) -> np .ndarray :
@@ -354,7 +354,7 @@ def eccentric_radii_grid_from(
354354
355355 return xp .multiply (xp .sqrt (self .axis_ratio (xp )), grid_radii .array )
356356
357- @aa .grid_dec .to_grid
357+ @aa .decorators .to_grid
358358 def transformed_to_reference_frame_grid_from (
359359 self , grid : aa .type .Grid2DLike , xp = np , ** kwargs
360360 ) -> np .ndarray :
@@ -374,7 +374,7 @@ def transformed_to_reference_frame_grid_from(
374374 grid_2d = grid .array , centre = self .centre , angle = self .angle (xp ), xp = xp
375375 )
376376
377- @aa .grid_dec .to_grid
377+ @aa .decorators .to_grid
378378 def transformed_from_reference_frame_grid_from (
379379 self , grid : aa .type .Grid2DLike , xp = np , ** kwargs
380380 ) -> aa .type .Grid2DLike :
0 commit comments