@@ -299,7 +299,7 @@ def test_load_catalog_multiple_same_label(self, catalog):
299299 def test_load_catalog_with_skycoord_no_wcs (self , catalog , data ):
300300 # Check that loading a catalog with skycoord but no x/y and
301301 # no WCS returns a catalog with None for x and y.
302- self .image .load_array (data )
302+ self .image .load_image (data )
303303
304304 # Remove x/y columns from the catalog
305305 del catalog ['x' , 'y' ]
@@ -314,15 +314,15 @@ def test_load_catalog_with_skycoord_no_wcs(self, catalog, data):
314314 def test_load_catalog_with_use_skycoord_no_skycoord_no_wcs (self , catalog , data ):
315315 # Check that loading a catalog with use_skycoord=True but no
316316 # skycoord column and no WCS raises an error.
317- self .image .load_array (data )
317+ self .image .load_image (data )
318318 del catalog ['coord' ] # Remove the skycoord column
319319 with pytest .raises (ValueError , match = 'Cannot use sky coordinates without' ):
320320 self .image .load_catalog (catalog , use_skycoord = True )
321321
322322 def test_load_catalog_with_xy_and_wcs (self , catalog , data , wcs ):
323323 # Check that loading a catalog that wants to use sky coordinates,
324324 # 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 ))
326326
327327 # Remove the skycoord column from the catalog
328328 del catalog ['coord' ]
0 commit comments