Skip to content

Commit 5347dd5

Browse files
Jammy2211Jammy2211
authored andcommitted
fix unit tests
1 parent afd0d41 commit 5347dd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoarray/inversion/pixelization/mappers/mapper_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def adaptive_pixel_signals_from(
346346
pix_indexes_for_sub_slim_index: np.ndarray,
347347
pix_size_for_sub_slim_index: np.ndarray,
348348
slim_index_for_sub_slim_index: np.ndarray,
349-
mesh_weight_map: np.ndarray,
349+
adapt_data: np.ndarray,
350350
xp=np
351351
) -> np.ndarray:
352352
"""
@@ -373,7 +373,7 @@ def adaptive_pixel_signals_from(
373373
low signal regions.
374374
regular_to_pix
375375
A 1D array util every pixel on the grid to a pixel on the pixelization.
376-
mesh_weight_map
376+
adapt_data
377377
The image of the galaxy which is used to compute the weigghted pixel signals.
378378
"""
379379

@@ -395,7 +395,7 @@ def adaptive_pixel_signals_from(
395395
) # send invalid indices to an out-of-bounds slot
396396

397397
# 4) Look up data & multiply by mapping weights:
398-
flat_data_vals = xp.take(mesh_weight_map[slim_index_for_sub_slim_index], I_sub, axis=0)
398+
flat_data_vals = xp.take(adapt_data[slim_index_for_sub_slim_index], I_sub, axis=0)
399399
flat_contrib = flat_data_vals * flat_weights # (M_sub*B,)
400400

401401
pixel_signals = xp.zeros((pixels + 1,))

0 commit comments

Comments
 (0)