File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments