Skip to content

Commit 8af880d

Browse files
Jammy2211Jammy2211
authored andcommitted
w tilde now default to false
1 parent 968a994 commit 8af880d

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

autoarray/inversion/inversion/abstract.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ 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-
404-
print(ids_to_keep)
405-
406403
# Zero rows and columns in the matrix we want to ignore
407404
return self.curvature_reg_matrix[ids_to_keep][:, ids_to_keep]
408405

autoarray/inversion/inversion/imaging/w_tilde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import copy
21
import numpy as np
32
from typing import Dict, List, Optional, Union
43

@@ -14,6 +13,7 @@
1413
from autoarray.inversion.pixelization.mappers.abstract import AbstractMapper
1514
from autoarray.structures.arrays.uniform_2d import Array2D
1615

16+
from autoarray import exc
1717
from autoarray.inversion.inversion import inversion_util
1818
from autoarray.inversion.inversion.imaging import inversion_imaging_util
1919

autoarray/inversion/inversion/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class SettingsInversion:
1111
def __init__(
1212
self,
13-
use_w_tilde: bool = True,
13+
use_w_tilde: bool = False,
1414
use_positive_only_solver: Optional[bool] = None,
1515
positive_only_uses_p_initial: Optional[bool] = None,
1616
use_border_relocator: Optional[bool] = None,

test_autoarray/inversion/inversion/imaging/test_imaging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,5 @@ def test__w_tilde_checks_noise_map_and_raises_exception_if_preloads_dont_match_n
163163
mapping_matrix=np.ones(matrix_shape), source_plane_data_grid=grid
164164
)
165165
],
166+
settings=aa.SettingsInversion(use_w_tilde=True)
166167
)

0 commit comments

Comments
 (0)