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