Skip to content

Commit

Permalink
more casting to array
Browse files Browse the repository at this point in the history
  • Loading branch information
rhayes777 committed Dec 18, 2023
1 parent ee292df commit c5463f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoarray/inversion/inversion/imaging/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def data_vector(self) -> np.ndarray:

return inversion_imaging_util.data_vector_via_blurred_mapping_matrix_from(
blurred_mapping_matrix=operated_mapping_matrix,
image=self.data,
noise_map=self.noise_map,
image=np.array(self.data),
noise_map=np.array(self.noise_map),
)

@property
Expand Down
4 changes: 2 additions & 2 deletions autoarray/inversion/pixelization/mappers/voronoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def pix_sub_weights(self) -> PixSubWeights:
The weights are used when creating the `mapping_matrix` and `pixel_signals_from`.
"""
mappings = mapper_util.pix_indexes_for_sub_slim_index_voronoi_from(
grid=self.source_plane_data_grid,
grid=np.array(self.source_plane_data_grid),
slim_index_for_sub_slim_index=self.source_plane_data_grid.mask.derive_indexes.slim_for_sub_slim,
mesh_grid=self.source_plane_mesh_grid,
mesh_grid=np.array(self.source_plane_mesh_grid),
neighbors=self.source_plane_mesh_grid.neighbors,
neighbors_sizes=self.source_plane_mesh_grid.neighbors.sizes,
).astype("int")
Expand Down

0 comments on commit c5463f4

Please sign in to comment.