Skip to content

Commit dee2d54

Browse files
Jammy2211Jammy2211
authored andcommitted
Merge branch 'Chocologism-feature/psuedo_isothermal_test'
2 parents 834f5e4 + 9366083 commit dee2d54

4 files changed

Lines changed: 870 additions & 14 deletions

File tree

autogalaxy/operate/image.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,14 @@ def visibilities_from(
186186
in the uv-plane.
187187
"""
188188

189-
image_2d = self.image_2d_from(grid=grid)
189+
from autogalaxy.profiles.light.abstract import LightProfile
190190

191-
if jnp.any(image_2d.array):
192-
return transformer.visibilities_from(image=image_2d)
193-
return aa.Visibilities.zeros(shape_slim=(transformer.uv_wavelengths.shape[0],))
191+
if self.has(cls=LightProfile):
194192

195-
# return jax.lax.cond(
196-
# jnp.any(image_2d.array),
197-
# lambda _: transformer.visibilities_from(image=image_2d),
198-
# lambda _: aa.Visibilities.zeros(
199-
# shape_slim=(transformer.uv_wavelengths.shape[0],)
200-
# ),
201-
# operand=None,
202-
# )
193+
image_2d = self.image_2d_from(grid=grid)
194+
return transformer.visibilities_from(image=image_2d)
203195

196+
return aa.Visibilities.zeros(shape_slim=(transformer.uv_wavelengths.shape[0],))
204197

205198
class OperateImageList(OperateImage):
206199
"""

autogalaxy/profiles/mass/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from .abstract.abstract import MassProfile
22
from .point import PointMass, SMBH, SMBHBinary
33
from .total import (
4-
dPIE,
5-
dPIESph,
4+
dPIEMD,
5+
dPIEMDSph,
6+
PIEMD,
7+
dPIEP,
8+
dPIEPSph,
69
PowerLawCore,
710
PowerLawCoreSph,
811
PowerLawBroken,

autogalaxy/profiles/mass/total/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .dual_pseudo_isothermal import dPIE, dPIESph
2+
from .pseudo_isothermal import PIEMD, dPIEMD, dPIEMDSph, dPIEP, dPIEPSph
23
from .isothermal import Isothermal, IsothermalSph
34
from .isothermal_core import IsothermalCore, IsothermalCoreSph
45
from .power_law import PowerLaw, PowerLawSph

0 commit comments

Comments
 (0)