Skip to content

Commit

Permalink
horrible refactor nearly done
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Dec 15, 2024
1 parent d4a8ef3 commit 3e0f442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoarray/inversion/pixelization/mappers/rectangular.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ def pix_sub_weights(self) -> PixSubWeights:
origin=self.source_plane_mesh_grid.origin,
).astype("int")

mappings = mappings.reshape((len(mappings), 1))

return PixSubWeights(
mappings=mappings.reshape((len(mappings), 1)),
mappings=mappings,
sizes=np.ones(len(mappings), dtype="int"),
weights=np.ones(
(len(self.source_plane_data_grid.grid_over_sampled), 1), dtype="int"
Expand Down

0 comments on commit 3e0f442

Please sign in to comment.