Skip to content

Commit bc8d116

Browse files
author
NiekWielders
committed
reverse inheritance change and comment out error source
1 parent a4160fa commit bc8d116

2 files changed

Lines changed: 14 additions & 45 deletions

File tree

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from typing import Tuple
22

3-
from autogalaxy.profiles.mass.dark.cnfw import (cNFW, cNFWSph)
3+
from autogalaxy.profiles.mass.dark.cnfw_mcr_scatter import (
4+
cNFWMCRScatterLudlow,
5+
cNFWMCRScatterLudlowSph,
6+
)
47

5-
from autogalaxy.profiles.mass.dark import mcr_util
6-
7-
class cNFWMCRLudlow(cNFW):
8+
class cNFWMCRLudlow(cNFWMCRScatterLudlow):
89
def __init__(
910
self,
1011
centre: Tuple[float, float] = (0.0, 0.0),
@@ -14,33 +15,17 @@ def __init__(
1415
redshift_object: float = 0.5,
1516
redshift_source: float = 1.0,
1617
):
17-
self.mass_at_200 = mass_at_200
18-
self.f_c = f_c
19-
self.redshift_object = redshift_object
20-
self.redshift_source = redshift_source
21-
22-
(
23-
kappa_s,
24-
scale_radius,
25-
core_radius,
26-
radius_at_200,
27-
) = mcr_util.kappa_s_scale_radius_and_core_radius_for_ludlow(
18+
super().__init__(
19+
centre=centre,
20+
ell_comps=ell_comps,
2821
mass_at_200=mass_at_200,
29-
f_c=f_c,
3022
scatter_sigma=0.0,
23+
f_c=f_c,
3124
redshift_object=redshift_object,
3225
redshift_source=redshift_source,
3326
)
3427

35-
super().__init__(
36-
centre=centre,
37-
ell_comps=ell_comps,
38-
kappa_s=kappa_s,
39-
scale_radius=scale_radius,
40-
core_radius=core_radius,
41-
)
42-
43-
class cNFWMCRLudlowSph(cNFWSph):
28+
class cNFWMCRLudlowSph(cNFWMCRScatterLudlowSph):
4429
def __init__(
4530
self,
4631
centre: Tuple[float, float] = (0.0, 0.0),
@@ -49,27 +34,11 @@ def __init__(
4934
redshift_object: float = 0.5,
5035
redshift_source: float = 1.0,
5136
):
52-
self.mass_at_200 = mass_at_200
53-
self.f_c = f_c
54-
self.redshift_object = redshift_object
55-
self.redshift_source = redshift_source
56-
57-
(
58-
kappa_s,
59-
scale_radius,
60-
core_radius,
61-
radius_at_200,
62-
) = mcr_util.kappa_s_scale_radius_and_core_radius_for_ludlow(
37+
super().__init__(
38+
centre=centre,
6339
mass_at_200=mass_at_200,
64-
f_c=f_c,
6540
scatter_sigma=0.0,
41+
f_c=f_c,
6642
redshift_object=redshift_object,
6743
redshift_source=redshift_source,
6844
)
69-
70-
super().__init__(
71-
centre=centre,
72-
kappa_s=kappa_s,
73-
scale_radius=scale_radius,
74-
core_radius=core_radius,
75-
)

autogalaxy/profiles/mass/dark/mcr_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def ludlow16_cosmology_jax(
133133
mass_at_200,
134134
redshift_object,
135135
redshift_source,
136-
vmap_method="sequential",
136+
#vmap_method="sequential",
137137
)
138138

139139

0 commit comments

Comments
 (0)