Skip to content

Commit 8442fb7

Browse files
Jammy2211Jammy2211
authored andcommitted
remove passng through of use_sparse_operator to BorderRelocator
1 parent 1041709 commit 8442fb7

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

autoarray/dataset/grids.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def __init__(
1717
over_sample_size_lp: Union[int, Array2D],
1818
over_sample_size_pixelization: Union[int, Array2D],
1919
psf: Optional[Kernel2D] = None,
20-
use_sparse_operator: bool = False,
2120
):
2221
"""
2322
Contains grids of (y,x) Cartesian coordinates at the centre of every pixel in the dataset's image and
@@ -66,8 +65,6 @@ def __init__(
6665
self._blurring = None
6766
self._border_relocator = None
6867

69-
self.use_sparse_operator = use_sparse_operator
70-
7168
@property
7269
def lp(self):
7370

@@ -120,7 +117,6 @@ def border_relocator(self) -> BorderRelocator:
120117
self._border_relocator = BorderRelocator(
121118
mask=self.mask,
122119
sub_size=self.over_sample_size_pixelization,
123-
use_sparse_operator=self.use_sparse_operator,
124120
)
125121

126122
return self._border_relocator

autoarray/dataset/imaging/dataset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,11 @@ def __init__(
192192
if psf.mask.shape[0] % 2 == 0 or psf.mask.shape[1] % 2 == 0:
193193
raise exc.KernelException("Kernel2D Kernel2D must be odd")
194194

195-
use_sparse_operator = True if sparse_operator is not None else False
196-
197195
self.grids = GridsDataset(
198196
mask=self.data.mask,
199197
over_sample_size_lp=self.over_sample_size_lp,
200198
over_sample_size_pixelization=self.over_sample_size_pixelization,
201199
psf=self.psf,
202-
use_sparse_operator=use_sparse_operator,
203200
)
204201

205202
self.sparse_operator = sparse_operator

autoarray/dataset/interferometer/dataset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,10 @@ def __init__(
9696
real_space_mask=real_space_mask,
9797
)
9898

99-
use_sparse_operator = True if sparse_operator is not None else False
100-
10199
self.grids = GridsDataset(
102100
mask=self.real_space_mask,
103101
over_sample_size_lp=self.over_sample_size_lp,
104102
over_sample_size_pixelization=self.over_sample_size_pixelization,
105-
use_sparse_operator=use_sparse_operator,
106103
)
107104

108105
self.sparse_operator = sparse_operator

autoarray/inversion/pixelization/border_relocator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ def __init__(
332332
self,
333333
mask: Mask2D,
334334
sub_size: Union[int, Array2D],
335-
use_sparse_operator: bool = False,
336335
):
337336
"""
338337
Relocates source plane coordinates that trace outside the mask’s border in the source-plane back onto the
@@ -390,8 +389,6 @@ def __init__(
390389

391390
self.sub_border_grid = sub_grid[self.sub_border_slim]
392391

393-
self.use_sparse_operator = use_sparse_operator
394-
395392
@property
396393
def relocated_grid_from(self, grid: Grid2D, xp=np) -> Grid2D:
397394
"""

0 commit comments

Comments
 (0)