@@ -299,7 +299,7 @@ def test_load_catalog_multiple_same_label(self, catalog):
299
299
def test_load_catalog_with_skycoord_no_wcs (self , catalog , data ):
300
300
# Check that loading a catalog with skycoord but no x/y and
301
301
# no WCS returns a catalog with None for x and y.
302
- self .image .load_array (data )
302
+ self .image .load_image (data )
303
303
304
304
# Remove x/y columns from the catalog
305
305
del catalog ['x' , 'y' ]
@@ -314,15 +314,15 @@ def test_load_catalog_with_skycoord_no_wcs(self, catalog, data):
314
314
def test_load_catalog_with_use_skycoord_no_skycoord_no_wcs (self , catalog , data ):
315
315
# Check that loading a catalog with use_skycoord=True but no
316
316
# skycoord column and no WCS raises an error.
317
- self .image .load_array (data )
317
+ self .image .load_image (data )
318
318
del catalog ['coord' ] # Remove the skycoord column
319
319
with pytest .raises (ValueError , match = 'Cannot use sky coordinates without' ):
320
320
self .image .load_catalog (catalog , use_skycoord = True )
321
321
322
322
def test_load_catalog_with_xy_and_wcs (self , catalog , data , wcs ):
323
323
# Check that loading a catalog that wants to use sky coordinates,
324
324
# has no coordinate column but has x/y and a WCS works.
325
- self .image .load_nddata (NDData (data = data , wcs = wcs ))
325
+ self .image .load_image (NDData (data = data , wcs = wcs ))
326
326
327
327
# Remove the skycoord column from the catalog
328
328
del catalog ['coord' ]
0 commit comments