Skip to content

Commit 0644982

Browse files
authored
Merge pull request #273 from Jammy2211/jax_hot_fix
Jax hot fix
2 parents dd480c3 + 64f3620 commit 0644982

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autogalaxy/abstract_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def linear_light_profile_intensity_dict(
110110
reconstruction = self.inversion.reconstruction_dict[linear_obj_func]
111111

112112
for i, light_profile in enumerate(linear_obj_func.light_profile_list):
113-
linear_light_profile_intensity_dict[light_profile] = reconstruction[i]
113+
linear_light_profile_intensity_dict[light_profile] = float(reconstruction[i])
114114

115115
return linear_light_profile_intensity_dict
116116

autogalaxy/profiles/basis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def deflections_yx_2d_from(
215215
"""
216216
if len(self.mass_profile_list) > 0:
217217
return sum(
218-
[mass.deflections_yx_2d_from(grid=grid) for mass in self.profile_list]
218+
[mass.deflections_yx_2d_from(grid=grid, xp=xp) for mass in self.profile_list]
219219
)
220220
return xp.zeros((grid.shape[0], 2))
221221

0 commit comments

Comments
 (0)