Skip to content

Commit 4a878b8

Browse files
author
NiekWielders
committed
Merge branch 'feature/jax_mge' of https://github.com/Jammy2211/PyAutoGalaxy into feature/jax_mge
2 parents 6ced480 + b1b9e95 commit 4a878b8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • autogalaxy/profiles/mass/abstract

autogalaxy/profiles/mass/abstract/mge.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,14 @@ def deflections_2d_via_mge_from(
175175
Returns
176176
-------
177177
"""
178+
sigma_log_array = xp.asarray(sigma_log_list, dtype=xp.float64)
179+
178180
amps, sigmas = self.decompose_convergence_via_mge(
179-
sigma_log_list=sigma_log_list, func_terms=func_terms, three_D=three_D, xp=xp)
181+
sigma_log_list=sigma_log_array, func_terms=func_terms, three_D=three_D, xp=xp)
180182

181183
q = xp.asarray(self.axis_ratio(xp), dtype=xp.float64)
182184

183-
sigmas = sigmas_factor * sigma_log_list
185+
sigmas = sigmas_factor * sigma_log_array
184186

185187
deflection_angles = (
186188
amps[:, None]

0 commit comments

Comments
 (0)