Skip to content

Commit 1505abf

Browse files
author
Niek Wielders
committed
fix deflection test
1 parent e2791a5 commit 1505abf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test_autogalaxy/profiles/mass/dark/test_cnfw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def test__deflections_yx_2d_from():
77
cnfw = ag.mp.cNFW(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036)
88

99
deflection_2d = cnfw.deflections_yx_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]]))
10-
deflection_r = np.sqrt(deflection_2d[0]**2 + deflection_2d[1]**2)
10+
deflection_r = np.sqrt(deflection_2d[0, 0]**2 + deflection_2d[0, 1]**2)
1111

1212
assert deflection_r == pytest.approx(0.006034319441107217, 1.0e-8)
1313

0 commit comments

Comments
 (0)