We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba9e39 commit 629904bCopy full SHA for 629904b
1 file changed
test_autogalaxy/profiles/mass/dark/test_nfw_scatter.py
@@ -59,3 +59,27 @@ def test__scatter_is_nonzero():
59
deflections_ell = nfw_ell.deflections_yx_2d_from(grid=grid)
60
61
assert deflections_sph[0] != pytest.approx(deflections_ell[0], 1.0e-4)
62
+
63
+ # Testing the cored NFW
64
65
+ cnfw_sph = ag.mp.cNFWMCRScatterLudlowSph(
66
+ ell_comps=(0.5, 0.5),
67
+ mass_at_200=1.0e9,
68
+ scatter_sigma=1.0,
69
+ f_c=0.01,
70
+ redshift_object=0.6,
71
+ redshift_source=2.5,
72
+ )
73
74
+ assert cnfw_sph.scale_radius == pytest.approx(0.14978, 1.0e-4)
75
76
77
78
79
+ scatter_sigma=-1.0,
80
81
82
83
84
85
+ assert cnfw_sph.scale_radius == pytest.approx(0.29886, 1.0e-4)
0 commit comments