99from autoarray .inversion .linear_obj .linear_obj import LinearObj
1010from autoarray .settings import Settings
1111from autoarray .inversion .linear_obj .func_list import AbstractLinearObjFuncList
12- from autoarray .inversion .pixelization . mappers .abstract import AbstractMapper
12+ from autoarray .inversion .mappers .abstract import Mapper
1313from autoarray .preloads import Preloads
1414from autoarray .structures .arrays .uniform_2d import Array2D
1515
@@ -72,13 +72,13 @@ def _data_vector_mapper(self) -> np.ndarray:
7272 in the inversion, and is separated into a separate method to enable preloading of the mapper `data_vector`.
7373 """
7474
75- if not self .has (cls = AbstractMapper ):
75+ if not self .has (cls = Mapper ):
7676 return None
7777
7878 data_vector = self ._xp .zeros (self .total_params )
7979
80- mapper_list = self .cls_list_from (cls = AbstractMapper )
81- mapper_param_range = self .param_range_list_from (cls = AbstractMapper )
80+ mapper_list = self .cls_list_from (cls = Mapper )
81+ mapper_param_range = self .param_range_list_from (cls = Mapper )
8282
8383 for mapper_index , mapper in enumerate (mapper_list ):
8484
@@ -121,7 +121,7 @@ def data_vector(self) -> np.ndarray:
121121 """
122122 if self .has (cls = AbstractLinearObjFuncList ):
123123 return self ._data_vector_func_list_and_mapper
124- elif self .total (cls = AbstractMapper ) == 1 :
124+ elif self .total (cls = Mapper ) == 1 :
125125 return self ._data_vector_x1_mapper
126126 return self ._data_vector_multi_mapper
127127
@@ -158,7 +158,7 @@ def _data_vector_multi_mapper(self) -> np.ndarray:
158158
159159 data_vector_list = []
160160
161- for mapper in self .cls_list_from (cls = AbstractMapper ):
161+ for mapper in self .cls_list_from (cls = Mapper ):
162162
163163 rows , cols , vals = mapper .sparse_triplets_data
164164
@@ -243,7 +243,7 @@ def curvature_matrix(self) -> np.ndarray:
243243 """
244244 if self .has (cls = AbstractLinearObjFuncList ):
245245 curvature_matrix = self ._curvature_matrix_func_list_and_mapper
246- elif self .total (cls = AbstractMapper ) == 1 :
246+ elif self .total (cls = Mapper ) == 1 :
247247 curvature_matrix = self ._curvature_matrix_x1_mapper
248248 else :
249249 curvature_matrix = self ._curvature_matrix_multi_mapper
@@ -276,13 +276,13 @@ def _curvature_matrix_mapper_diag(self) -> Optional[np.ndarray]:
276276 other calculations to enable preloading of this calculation.
277277 """
278278
279- if not self .has (cls = AbstractMapper ):
279+ if not self .has (cls = Mapper ):
280280 return None
281281
282282 curvature_matrix = self ._xp .zeros ((self .total_params , self .total_params ))
283283
284- mapper_list = self .cls_list_from (cls = AbstractMapper )
285- mapper_param_range_list = self .param_range_list_from (cls = AbstractMapper )
284+ mapper_list = self .cls_list_from (cls = Mapper )
285+ mapper_param_range_list = self .param_range_list_from (cls = Mapper )
286286
287287 for i in range (len (mapper_list )):
288288 mapper_i = mapper_list [i ]
@@ -304,13 +304,13 @@ def _curvature_matrix_mapper_diag(self) -> Optional[np.ndarray]:
304304 else :
305305 curvature_matrix = curvature_matrix .at [start :end , start :end ].set (diag )
306306
307- if self .total (cls = AbstractMapper ) == 1 :
307+ if self .total (cls = Mapper ) == 1 :
308308 return curvature_matrix
309309
310310 return curvature_matrix
311311
312312 def _curvature_matrix_off_diag_from (
313- self , mapper_0 : AbstractMapper , mapper_1 : AbstractMapper
313+ self , mapper_0 : Mapper , mapper_1 : Mapper
314314 ) -> np .ndarray :
315315 """
316316 The `curvature_matrix` is a 2D matrix which uses the mappings between the data and the linear objects to
@@ -362,11 +362,11 @@ def _curvature_matrix_multi_mapper(self) -> np.ndarray:
362362
363363 curvature_matrix = self ._curvature_matrix_mapper_diag
364364
365- if self .total (cls = AbstractMapper ) == 1 :
365+ if self .total (cls = Mapper ) == 1 :
366366 return curvature_matrix
367367
368- mapper_list = self .cls_list_from (cls = AbstractMapper )
369- mapper_param_range_list = self .param_range_list_from (cls = AbstractMapper )
368+ mapper_list = self .cls_list_from (cls = Mapper )
369+ mapper_param_range_list = self .param_range_list_from (cls = Mapper )
370370
371371 for i in range (len (mapper_list )):
372372 mapper_i = mapper_list [i ]
@@ -401,8 +401,8 @@ def _curvature_matrix_func_list_and_mapper(self) -> np.ndarray:
401401
402402 curvature_matrix = self ._curvature_matrix_multi_mapper
403403
404- mapper_list = self .cls_list_from (cls = AbstractMapper )
405- mapper_param_range_list = self .param_range_list_from (cls = AbstractMapper )
404+ mapper_list = self .cls_list_from (cls = Mapper )
405+ mapper_param_range_list = self .param_range_list_from (cls = Mapper )
406406
407407 linear_func_list = self .cls_list_from (cls = AbstractLinearObjFuncList )
408408 linear_func_param_range_list = self .param_range_list_from (
@@ -491,7 +491,7 @@ def _mapped_reconstructed_data_dict_from(
491491 """
492492 Shared implementation for mapping a reconstruction to image-plane arrays for each linear object.
493493
494- For AbstractMapper objects this uses the sparse operator mapping, and optionally applies the PSF.
494+ For Mapper objects this uses the sparse operator mapping, and optionally applies the PSF.
495495 For linear-func objects this uses either the operated or unoperated mapping matrix dict.
496496 """
497497 mapped_dict = {}
@@ -504,7 +504,7 @@ def _mapped_reconstructed_data_dict_from(
504504
505505 reconstruction = reconstruction_dict [linear_obj ]
506506
507- if isinstance (linear_obj , AbstractMapper ):
507+ if isinstance (linear_obj , Mapper ):
508508
509509 rows , cols , vals = linear_obj .sparse_triplets_curvature
510510
0 commit comments