Skip to content

Commit 8051e35

Browse files
Jammy2211Jammy2211
authored andcommitted
black
1 parent 97abd12 commit 8051e35

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

autoarray/inversion/inversion/abstract.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,10 @@ def reconstruction(self) -> np.ndarray:
464464
And the data_vector = ZTx, so the corresponding row is also taken out.
465465
"""
466466

467-
if self.has(cls=AbstractMapper) and self.settings.force_edge_pixels_to_zeros:
467+
if (
468+
self.has(cls=AbstractMapper)
469+
and self.settings.force_edge_pixels_to_zeros
470+
):
468471

469472
ids_zeros = jnp.array(self.mapper_edge_pixel_list, dtype=int)
470473

autoarray/inversion/inversion/imaging/w_tilde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _curvature_matrix_func_list_and_mapper(self) -> np.ndarray:
440440
data_weights=mapper.unique_mappings.data_weights,
441441
pix_lengths=mapper.unique_mappings.pix_lengths,
442442
pix_pixels=mapper.params,
443-
curvature_weights=curvature_weights,
443+
curvature_weights=np.array(curvature_weights),
444444
image_frame_1d_lengths=self.convolver.image_frame_1d_lengths,
445445
image_frame_1d_indexes=self.convolver.image_frame_1d_indexes,
446446
image_frame_1d_kernels=self.convolver.image_frame_1d_kernels,

autoarray/inversion/inversion/interferometer/mapping.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ def mapped_reconstructed_data_dict(
152152

153153
visibilities = (
154154
inversion_interferometer_util.mapped_reconstructed_visibilities_from(
155-
transformed_mapping_matrix=np.array(operated_mapping_matrix_list[index]),
155+
transformed_mapping_matrix=np.array(
156+
operated_mapping_matrix_list[index]
157+
),
156158
reconstruction=np.array(reconstruction),
157159
)
158160
)

autoarray/inversion/inversion/inversion_util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ def curvature_matrix_with_added_to_diag_from(
7272
no_regularization_index_list=no_regularization_index_list,
7373
)
7474

75+
7576
@numba_util.jit()
7677
def curvature_matrix_with_added_to_diag_from_numba(
77-
curvature_matrix: np.ndarray,
78-
value: float,
79-
no_regularization_index_list: Optional[List] = None,
78+
curvature_matrix: np.ndarray,
79+
value: float,
80+
no_regularization_index_list: Optional[List] = None,
8081
) -> np.ndarray:
8182
"""
8283
It is common for the `curvature_matrix` computed to not be positive-definite, leading for the inversion

autoarray/inversion/pixelization/mappers/voronoi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,8 @@ def interpolated_array_from(
172172
is input.
173173
"""
174174
return self.source_plane_mesh_grid.interpolated_array_from(
175-
values=np.array(values), shape_native=shape_native, extent=extent, use_nn=True
175+
values=np.array(values),
176+
shape_native=shape_native,
177+
extent=extent,
178+
use_nn=True,
176179
)

0 commit comments

Comments
 (0)