Skip to content

Commit d8f68e2

Browse files
authored
Merge pull request #274 from Jammy2211/feature/geometry_hot_fix
feature/geometry_hot_fix
2 parents 53f650c + 0ea7ae6 commit d8f68e2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

autogalaxy/profiles/geometry_profiles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def _cartesian_grid_via_radial_from(
105105
The circular radius of each coordinate from the profile center.
106106
"""
107107
grid_angles = xp.arctan2(grid.array[:, 0], grid.array[:, 1])
108-
cos_theta, sin_theta = self.angle_to_profile_grid_from(
109-
grid_angles=grid_angles, xp=xp
110-
)
108+
109+
cos_theta = xp.cos(grid_angles)
110+
sin_theta = xp.sin(grid_angles)
111111

112112
return xp.multiply(radius[:, None], xp.vstack((sin_theta, cos_theta)).T)
113113

autogalaxy/profiles/mass/total/isothermal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def deflections_yx_2d_from(self, grid: aa.type.Grid2DLike, xp=np, **kwargs):
202202
"""
203203
return self._cartesian_grid_via_radial_from(
204204
grid=grid,
205-
radius=xp.full(grid.shape[0], 2.0 * self.einstein_radius_rescaled(xp)),
206205
xp=xp,
206+
radius=xp.full(grid.shape[0], 2.0 * self.einstein_radius_rescaled(xp)),
207207
**kwargs,
208208
)

0 commit comments

Comments
 (0)