File tree Expand file tree Collapse file tree
autoarray/inversion/inversion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,27 +400,10 @@ def curvature_reg_matrix_reduced(self) -> Optional[np.ndarray]:
400400
401401 # ids of values which are on edge so zero-d and not solved for.
402402 ids_to_keep = self .mapper_index_list
403+
403404 # Zero rows and columns in the matrix we want to ignore
404405 return self .curvature_reg_matrix [ids_to_keep ][:, ids_to_keep ]
405406
406- @property
407- def mapper_zero_pixel_list (self ) -> np .ndarray :
408- mapper_zero_pixel_list = []
409- param_range_list = self .param_range_list_from (cls = LinearObj )
410- for param_range , linear_obj in zip (param_range_list , self .linear_obj_list ):
411- if isinstance (linear_obj , AbstractMapper ):
412- mapping_matrix_for_image_pixels_source_zero = linear_obj .mapping_matrix [
413- self .settings .image_pixels_source_zero
414- ]
415- source_pixels_zero = (
416- np .sum (mapping_matrix_for_image_pixels_source_zero != 0 , axis = 0 )
417- != 0
418- )
419- mapper_zero_pixel_list .append (
420- np .where (source_pixels_zero == True )[0 ] + param_range [0 ]
421- )
422- return mapper_zero_pixel_list
423-
424407 @cached_property
425408 def reconstruction (self ) -> np .ndarray :
426409 """
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ def __init__(
1515 positive_only_uses_p_initial : Optional [bool ] = None ,
1616 use_border_relocator : Optional [bool ] = None ,
1717 force_edge_pixels_to_zeros : bool = True ,
18- image_pixels_source_zero = None ,
1918 no_regularization_add_to_curvature_diag_value : float = None ,
2019 use_w_tilde_numpy : bool = False ,
2120 use_source_loop : bool = False ,
@@ -83,7 +82,6 @@ def __init__(
8382 self ._use_border_relocator = use_border_relocator
8483 self .use_linear_operators = use_linear_operators
8584 self .force_edge_pixels_to_zeros = force_edge_pixels_to_zeros
86- self .image_pixels_source_zero = image_pixels_source_zero
8785 self ._no_regularization_add_to_curvature_diag_value = (
8886 no_regularization_add_to_curvature_diag_value
8987 )
You can’t perform that action at this time.
0 commit comments