File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,9 @@ def test_wcs_project_onto_scale_wcs():
1094
1094
# TODO: change back to .mask when CCDData is array-api compliant
1095
1095
ccd_data ._mask = xp .zeros_like (ccd_data .data )
1096
1096
# ...except the center pixel, which is one.
1097
- ccd_data .mask [int (ccd_data .wcs .wcs .crpix [0 ]), int (ccd_data .wcs .wcs .crpix [1 ])] = 1
1097
+ ccd_data ._mask = xpx .at (ccd_data ._mask )[
1098
+ int (ccd_data .wcs .wcs .crpix [0 ]), int (ccd_data .wcs .wcs .crpix [1 ])
1099
+ ].set (1 )
1098
1100
1099
1101
target_wcs = wcs_for_testing (ccd_data .shape )
1100
1102
target_wcs .wcs .cdelt /= 2
@@ -1105,6 +1107,7 @@ def test_wcs_project_onto_scale_wcs():
1105
1107
1106
1108
# TODO: rm hack for numpy-specific check in astropy.wcs
1107
1109
ccd_data .data = np_array (ccd_data .data )
1110
+ ccd_data ._mask = np_array (ccd_data ._mask )
1108
1111
# Explicitly set the interpolation method so we know what to
1109
1112
# expect for the mass.
1110
1113
new_ccd = wcs_project (
You can’t perform that action at this time.
0 commit comments