|
4 | 4 | import autogalaxy as ag |
5 | 5 |
|
6 | 6 | def test__deflections_yx_2d_from(): |
7 | | - cnfw = ag.mp.cNFWsph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
| 7 | + cnfw = ag.mp.cNFWSph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
8 | 8 |
|
9 | 9 | deflection_2d = cnfw.deflections_yx_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]])) |
10 | 10 | deflection_r = np.sqrt(deflection_2d[0, 0]**2 + deflection_2d[0, 1]**2) |
11 | 11 |
|
12 | 12 | assert deflection_r == pytest.approx(0.006034319441107217, 1.0e-8) |
13 | 13 |
|
14 | 14 | def test_convergence_2d_from(): |
15 | | - cnfw = ag.mp.cNFWsph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
| 15 | + cnfw = ag.mp.cNFWSph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
16 | 16 |
|
17 | 17 | convergence = cnfw.convergence_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]])) |
18 | 18 |
|
19 | 19 | assert convergence == pytest.approx(0.0, 1.0e-4) |
20 | 20 |
|
21 | 21 | def test_potential_2d_from(): |
22 | | - cnfw = ag.mp.cNFWsph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
| 22 | + cnfw = ag.mp.cNFWSph(centre=(0.0, 0.0), kappa_s=0.01591814312464436, scale_radius=0.36, core_radius=0.036) |
23 | 23 |
|
24 | 24 | potential = cnfw.potential_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]])) |
25 | 25 |
|
|
0 commit comments