@@ -229,10 +229,7 @@ def image_2d_from(
229229 > 0
230230 ):
231231 return sum (self .image_2d_list_from (grid = grid , operated_only = operated_only ))
232-
233- return np .zeros ((grid .shape [0 ],))
234-
235- # return jnp.zeros((grid.shape[0],))
232+ return jnp .zeros ((grid .shape [0 ],))
236233
237234 @aa .grid_dec .to_projected
238235 def image_1d_from (self , grid : aa .type .Grid2DLike ) -> np .ndarray :
@@ -264,9 +261,8 @@ def image_1d_from(self, grid: aa.type.Grid2DLike) -> np.ndarray:
264261 image_1d_list .append (light_profile .image_1d_from (grid = grid_radial ))
265262
266263 return sum (image_1d_list )
267- return np .zeros ((grid .shape [0 ],))
268264
269- # return jnp.zeros((grid.shape[0],))
265+ return jnp .zeros ((grid .shape [0 ],))
270266
271267 @aa .grid_dec .to_vector_yx
272268 def deflections_yx_2d_from (self , grid : aa .type .Grid2DLike , ** kwargs ) -> np .ndarray :
@@ -294,9 +290,8 @@ def deflections_yx_2d_from(self, grid: aa.type.Grid2DLike, **kwargs) -> np.ndarr
294290 self .cls_list_from (cls = MassProfile ),
295291 )
296292 )
297- return np .zeros ((grid .shape [0 ], 2 ))
298293
299- # return jnp.zeros((grid.shape[0], 2))
294+ return jnp .zeros ((grid .shape [0 ], 2 ))
300295
301296 @aa .grid_dec .to_array
302297 def convergence_2d_from (self , grid : aa .type .Grid2DLike , ** kwargs ) -> np .ndarray :
@@ -324,9 +319,7 @@ def convergence_2d_from(self, grid: aa.type.Grid2DLike, **kwargs) -> np.ndarray:
324319 )
325320 )
326321
327- return np .zeros ((grid .shape [0 ],))
328-
329- # return jnp.zeros((grid.shape[0],))
322+ return jnp .zeros ((grid .shape [0 ],))
330323
331324 @aa .grid_dec .to_grid
332325 def traced_grid_2d_from (self , grid : aa .type .Grid2DLike ) -> aa .type .Grid2DLike :
@@ -376,9 +369,7 @@ def convergence_1d_from(self, grid: aa.type.Grid1D2DLike) -> np.ndarray:
376369
377370 return sum (convergence_1d_list )
378371
379- return np .zeros ((grid .shape [0 ],))
380-
381- # return jnp.zeros((grid.shape[0],))
372+ return jnp .zeros ((grid .shape [0 ],))
382373
383374 @aa .grid_dec .to_array
384375 def potential_2d_from (self , grid : aa .type .Grid2DLike , ** kwargs ) -> np .ndarray :
@@ -405,9 +396,7 @@ def potential_2d_from(self, grid: aa.type.Grid2DLike, **kwargs) -> np.ndarray:
405396 self .cls_list_from (cls = MassProfile ),
406397 )
407398 )
408- return np .zeros ((grid .shape [0 ],))
409-
410- # return jnp.zeros((grid.shape[0],))
399+ return jnp .zeros ((grid .shape [0 ],))
411400
412401 @aa .grid_dec .to_projected
413402 def potential_1d_from (self , grid : aa .type .Grid2DLike ) -> np .ndarray :
@@ -439,9 +428,8 @@ def potential_1d_from(self, grid: aa.type.Grid2DLike) -> np.ndarray:
439428 )
440429
441430 return sum (potential_1d_list )
442- return np .zeros ((grid .shape [0 ],))
443431
444- # return jnp.zeros((grid.shape[0],))
432+ return jnp .zeros ((grid .shape [0 ],))
445433
446434 @property
447435 def half_light_radius (self ):
0 commit comments