Skip to content

Commit 7e8bdda

Browse files
author
Niek Wielders
committed
changed naming cNFWsph to cNFWSph
1 parent cfea2c0 commit 7e8bdda

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

autogalaxy/config/priors/mass/dark/cnfw.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cNFWsph:
1+
cNFWSph:
22
centre_0:
33
type: Gaussian
44
mean: 0.0

autogalaxy/profiles/mass/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
NFWMCRLudlow,
3737
gNFWMCRLudlow,
3838
NFWVirialMassConcSph,
39-
cNFWsph,
39+
cNFWSph,
4040
)
4141
from .stellar import (
4242
Gaussian,

autogalaxy/profiles/mass/dark/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
from .nfw_truncated_mcr import NFWTruncatedMCRLudlowSph, NFWTruncatedMCRDuffySph
1010
from .nfw_truncated_mcr_scatter import NFWTruncatedMCRScatterLudlowSph
1111
from .nfw_virial_mass_conc import NFWVirialMassConcSph
12-
from .cnfw import cNFWsph
12+
from .cnfw import cNFWSph

autogalaxy/profiles/mass/dark/cnfw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from autogalaxy.profiles.mass.abstract.abstract import MassProfile
88

9-
class cNFWsph(MassProfile):
9+
class cNFWSph(MassProfile):
1010
def __init__(
1111
self,
1212
centre: Tuple[float, float] = (0.0, 0.0),

test_autogalaxy/profiles/mass/dark/test_cnfw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
import autogalaxy as ag
55

66
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)
88

99
deflection_2d = cnfw.deflections_yx_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]]))
1010
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

1414
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)
1616

1717
convergence = cnfw.convergence_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]]))
1818

1919
assert convergence == pytest.approx(0.0, 1.0e-4)
2020

2121
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)
2323

2424
potential = cnfw.potential_2d_from(grid=ag.Grid2DIrregular([[1.0, 0.0]]))
2525

0 commit comments

Comments
 (0)