Skip to content

Commit eeeb4ff

Browse files
Jammy2211Jammy2211
authored andcommitted
fix mesh weight map input
1 parent ebb8b22 commit eeeb4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoarray/inversion/pixelization/mesh/rectangular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def mesh_weight_map_from(self, adapt_data, xp=np) -> np.ndarray:
206206
xp
207207
The array library to use.
208208
"""
209-
mesh_weight_map = xp.asarray(mesh_weight_map.array)
209+
mesh_weight_map = xp.asarray(adapt_data.array)
210210
mesh_weight_map = xp.clip(mesh_weight_map, 1e-12, None)
211211
mesh_weight_map = mesh_weight_map ** self.weight_power
212212
mesh_weight_map /= xp.sum(mesh_weight_map)

0 commit comments

Comments
 (0)