Skip to content

Commit 58cf1f1

Browse files
committed
Merge branch 'main' into feature/jax_wrapper
2 parents 9281c4d + 016022a commit 58cf1f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

autogalaxy/aggregator/agg_util.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import autofit as af
77
import autoarray as aa
88

9+
from autoarray.mask.mask_2d import Mask2DKeys
10+
911
from autogalaxy.analysis.adapt_images.adapt_images import AdaptImages
1012

1113

@@ -30,12 +32,12 @@ def mask_header_from(fit):
3032

3133
header = aa.Header(header_sci_obj=fit.value(name="dataset")[0].header)
3234
pixel_scales = (
33-
header.header_sci_obj["PIXSCAY"],
34-
header.header_sci_obj["PIXSCAX"],
35+
header.header_sci_obj[Mask2DKeys.PIXSCAY.value],
36+
header.header_sci_obj[Mask2DKeys.PIXSCAY.value],
3537
)
3638
origin = (
37-
header.header_sci_obj["ORIGINY"],
38-
header.header_sci_obj["ORIGINX"],
39+
header.header_sci_obj[Mask2DKeys.ORIGINY.value],
40+
header.header_sci_obj[Mask2DKeys.ORIGINX.value],
3941
)
4042
mask = aa.Mask2D(
4143
mask=ndarray_via_hdu_from(fit.value(name="dataset")[0]),

0 commit comments

Comments
 (0)