Skip to content

Commit 355d0a2

Browse files
Jammy2211Jammy2211
authored andcommitted
remove proejcted centre
1 parent f64e54c commit 355d0a2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

autoarray/structures/grids/uniform_2d.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ def grid_2d_radial_projected_from(
950950
centre: Tuple[float, float] = (0.0, 0.0),
951951
angle: float = 0.0,
952952
shape_slim: Optional[int] = 0,
953-
remove_projected_centre: bool = None,
953+
remove_projected_centre: bool = False,
954954
) -> Grid2DIrregular:
955955
"""
956956
Determine a projected radial grid of points from a 2D region of coordinates defined by an
@@ -1015,11 +1015,6 @@ def grid_2d_radial_projected_from(
10151015
grid_2d=grid_radial_projected_2d, centre=centre, angle=0.0
10161016
)
10171017

1018-
if remove_projected_centre is None:
1019-
remove_projected_centre = conf.instance["general"]["grid"][
1020-
"remove_projected_centre"
1021-
]
1022-
10231018
if remove_projected_centre:
10241019
grid_radial_projected_2d = grid_radial_projected_2d[1:, :]
10251020

test_autoarray/config/general.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ fits:
55
psf:
66
use_fft_default: false # If True, PSFs are convolved using FFTs by default, which is faster and uses less memory in all cases except for very small PSFs, False uses direct convolution. Real space used for unit tests.
77
grid:
8-
remove_projected_centre: false
98
adapt:
109
adapt_minimum_percent: 0.01
1110
adapt_noise_limit: 100000000.0

0 commit comments

Comments
 (0)