Skip to content

Commit 7bddaf2

Browse files
Jammy2211Jammy2211
authored andcommitted
visual clean up complete
1 parent 07c2bcd commit 7bddaf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autogalaxy/profiles/mass/sheets/external_shear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def potential_2d_from(self, grid: aa.type.Grid2DLike, **kwargs):
4949
) ##to be onsistent with autolens deflection angle calculation
5050
phig = jnp.deg2rad(shear_angle)
5151
shear_amp = self.magnitude
52-
phicoord = jnp.arctan2(grid[:, 0], grid[:, 1])
53-
rcoord = jnp.sqrt(grid[:, 0] ** 2.0 + grid[:, 1] ** 2.0)
52+
phicoord = jnp.arctan2(grid.array[:, 0], grid.array[:, 1])
53+
rcoord = jnp.sqrt(grid.array[:, 0] ** 2.0 + grid.array[:, 1] ** 2.0)
5454

5555
return -0.5 * shear_amp * rcoord**2 * jnp.cos(2 * (phicoord - phig))
5656

0 commit comments

Comments
 (0)