Skip to content

Commit 3af64fb

Browse files
committed
v2023.3.21.5
1 parent ea581ab commit 3af64fb

11 files changed

Lines changed: 366 additions & 15 deletions

File tree

autogalaxy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@
111111

112112
conf.instance.register(__file__)
113113

114-
__version__ = "2023.3.21.5"
114+
__version__ = "2023.3.27.1"

autogalaxy/analysis/clump_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def __init__(
3838
The centre of every clump in the model, whose light and mass profile centres are fixed to this value
3939
throughout the model-fit.
4040
light_cls
41-
The light profile given too all clumps; if omitted all clumps have no light profile.
41+
The light profile given to all clumps; if omitted all clumps have no light profile.
4242
mass_cls
43-
The mass profile given too all clumps; if omitted all clumps have no mass profile.
43+
The mass profile given to all clumps; if omitted all clumps have no mass profile.
4444
einstein_radius_upper_limit
4545
The upper limit given to any mass model's `einstein_radius` parameter (e.g. if `IsothermalSph` profiles
4646
are used to model clumps).

autogalaxy/gui/scribbler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
segment_names=None,
1515
title="Draw mask",
1616
cmap=None,
17-
brush_width=0.02,
17+
brush_width=0.05,
1818
backend="TkAgg",
1919
):
2020
"""
@@ -40,8 +40,8 @@ def __init__(
4040
plt.imshow(image, cmap=cmap.config_dict["cmap"], norm=norm)
4141
plt.axis([0, image.shape[1], image.shape[0], 0])
4242
plt.axis("off")
43-
if title:
44-
self.figure.canvas.set_window_title(title)
43+
# if title:
44+
# self.figure.canvas.set_window_title(title)
4545

4646
# disable default keybindings
4747
manager, canvas = self.figure.canvas.manager, self.figure.canvas

autogalaxy/profiles/light/linear/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from .gaussian import Gaussian, GaussianSph
33
from .moffat import Moffat
44
from .sersic import (
5-
Sersic,
5+
Sersic, SersicSph
66
)
7-
from .exponential import Exponential
8-
from .dev_vaucouleurs import DevVaucouleurs
7+
from .exponential import Exponential, ExponentialSph
8+
from .dev_vaucouleurs import DevVaucouleurs, DevVaucouleursSph
99
from .sersic_core import SersicCore
1010
from .exponential_core import ExponentialCore

autogalaxy/profiles/light/linear/dev_vaucouleurs.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,26 @@ def lp_cls(self):
3939
@property
4040
def lmp_cls(self):
4141
return lmp.DevVaucouleurs
42+
43+
44+
class DevVaucouleursSph(DevVaucouleurs):
45+
def __init__(
46+
self,
47+
centre: Tuple[float, float] = (0.0, 0.0),
48+
effective_radius: float = 0.6,
49+
):
50+
"""
51+
The spherical DevVaucouleurs light profile.
52+
53+
Parameters
54+
----------
55+
centre
56+
The (y,x) arc-second coordinates of the profile centre.
57+
effective_radius
58+
The circular radius containing half the light of this profile.
59+
"""
60+
super().__init__(
61+
centre=centre,
62+
ell_comps=(0.0, 0.0),
63+
effective_radius=effective_radius,
64+
)

autogalaxy/profiles/light/linear/exponential.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,25 @@ def lp_cls(self):
3939
@property
4040
def lmp_cls(self):
4141
return lmp.Exponential
42+
43+
class ExponentialSph(Exponential):
44+
def __init__(
45+
self,
46+
centre: Tuple[float, float] = (0.0, 0.0),
47+
effective_radius: float = 0.6,
48+
):
49+
"""
50+
The spherical Exponential light profile.
51+
52+
Parameters
53+
----------
54+
centre
55+
The (y,x) arc-second coordinates of the profile centre.
56+
effective_radius
57+
The circular radius containing half the light of this profile.
58+
"""
59+
super().__init__(
60+
centre=centre,
61+
ell_comps=(0.0, 0.0),
62+
effective_radius=effective_radius,
63+
)

autogalaxy/profiles/light/linear/sersic.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,30 @@ def lp_cls(self):
4444
@property
4545
def lmp_cls(self):
4646
return lmp.Sersic
47+
48+
class SersicSph(Sersic):
49+
def __init__(
50+
self,
51+
centre: Tuple[float, float] = (0.0, 0.0),
52+
effective_radius: float = 0.6,
53+
sersic_index: float = 4.0,
54+
):
55+
"""
56+
The spherical Sersic light profile.
57+
58+
Parameters
59+
----------
60+
centre
61+
The (y,x) arc-second coordinates of the profile centre.
62+
effective_radius
63+
The circular radius containing half the light of this profile.
64+
sersic_index
65+
Controls the concentration of the profile (lower -> less concentrated, higher -> more concentrated).
66+
"""
67+
68+
super().__init__(
69+
centre=centre,
70+
ell_comps=(0.0, 0.0),
71+
effective_radius=effective_radius,
72+
sersic_index=sersic_index,
73+
)

0 commit comments

Comments
 (0)