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