Skip to content

Commit fbcb29f

Browse files
Jammy2211Jammy2211
authored andcommitted
black
1 parent e5e27a5 commit fbcb29f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

autoarray/inversion/inversion/abstract.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,10 @@ def mapper_operated_mapping_matrix_dict(self) -> Dict:
757757
raise NotImplementedError
758758

759759
def max_pixel_list_from(
760-
self, total_pixels: int = 1, filter_neighbors: bool = False, mapper_index : int = 0
760+
self,
761+
total_pixels: int = 1,
762+
filter_neighbors: bool = False,
763+
mapper_index: int = 0,
761764
) -> List[List[int]]:
762765
"""
763766
Returns a list of lists of the maximum cell or pixel values in the mapper.
@@ -814,7 +817,7 @@ def max_pixel_list_from(
814817

815818
return max_pixel_list
816819

817-
def max_pixel_centre(self, mapper_index : int = 0) -> Grid2DIrregular:
820+
def max_pixel_centre(self, mapper_index: int = 0) -> Grid2DIrregular:
818821
"""
819822
Returns the centre of the brightest pixel in the mapper values.
820823
@@ -831,4 +834,4 @@ def max_pixel_centre(self, mapper_index : int = 0) -> Grid2DIrregular:
831834
values=[mapper.source_plane_mesh_grid.array[max_pixel]]
832835
)
833836

834-
return max_pixel_centre
837+
return max_pixel_centre

autoarray/inversion/plot/inversion_plotters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def subplot_mappings(
416416
pix_indexes = self.inversion.max_pixel_list_from(
417417
total_pixels=total_pixels,
418418
filter_neighbors=True,
419-
mapper_index=pixelization_index
419+
mapper_index=pixelization_index,
420420
)
421421

422422
indexes = mapper.slim_indexes_for_pix_indexes(pix_indexes=pix_indexes)

test_autoarray/inversion/inversion/test_abstract.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ def test__max_pixel_list_from_and_centre():
522522
)
523523

524524
inversion = aa.m.MockInversion(
525-
reconstruction=np.array([2.0, 3.0, 5.0, 0.0]),
526-
linear_obj_list=[mapper]
525+
reconstruction=np.array([2.0, 3.0, 5.0, 0.0]), linear_obj_list=[mapper]
527526
)
528527

529528
assert inversion.max_pixel_list_from(total_pixels=2)[0] == [
@@ -554,12 +553,10 @@ def test__max_pixel_list_from__filter_neighbors():
554553

555554
inversion = aa.m.MockInversion(
556555
reconstruction=np.array([5.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]),
557-
linear_obj_list=[mapper]
556+
linear_obj_list=[mapper],
558557
)
559558

560-
pixel_list = inversion.max_pixel_list_from(
561-
total_pixels=9, filter_neighbors=True
562-
)
559+
pixel_list = inversion.max_pixel_list_from(total_pixels=9, filter_neighbors=True)
563560

564561
assert pixel_list[0] == [
565562
0,

0 commit comments

Comments
 (0)