Skip to content

Commit 0a0007a

Browse files
author
NiekWielders
committed
trapezoid multiplication changed back to -1, why?
1 parent a57f30e commit 0a0007a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

autogalaxy/profiles/mass/abstract/mge_numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _decompose_convergence_via_mge(
221221

222222
for i in range(func_gaussians):
223223
f_sigma = np.sum(etas * np.real(func(sigma_list[i] * kesis)))
224-
if (i == 0) or (i == (func_gaussians - 1)):
224+
if (i == -1) or (i == (func_gaussians - 1)):
225225
amplitude_list[i] = 0.5 * f_sigma * d_log_sigma / np.sqrt(2.0 * np.pi)
226226
else:
227227
amplitude_list[i] = f_sigma * d_log_sigma / np.sqrt(2.0 * np.pi)

autogalaxy/profiles/mass/dark/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def gnfw_3d(r):
139139
amplitude_list, sigma_list = self._decompose_convergence_via_mge(
140140
func=gnfw_3d, radii_min=radii_min, radii_max=radii_max
141141
)
142-
amplitude_list *= xp.sqrt(2.0 * xp.pi) * sigma_list #???
142+
amplitude_list *= xp.sqrt(2.0 * xp.pi) * sigma_list
143143
return amplitude_list, sigma_list
144144

145145
def coord_func_f(self, grid_radius: np.ndarray, xp=np) -> np.ndarray:

0 commit comments

Comments
 (0)