Skip to content

Commit 51401b0

Browse files
Jammy2211Jammy2211
authored andcommitted
adaptive brightness now jax
1 parent be92a5e commit 51401b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoarray/inversion/pixelization/mappers/mapper_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def adaptive_pixel_signals_from(
340340
) # send invalid indices to an out-of-bounds slot
341341

342342
# 4) Look up data & multiply by mapping weights:
343-
flat_data_vals = adapt_data[slim_index_for_sub_slim_index][I_sub] # (M_sub*B,)
343+
flat_data_vals = jnp.take(adapt_data[slim_index_for_sub_slim_index], I_sub, axis=0)
344344
flat_contrib = flat_data_vals * flat_weights # (M_sub*B,)
345345

346346
# 5) Scatter‐add into signal sums and counts:

0 commit comments

Comments
 (0)