@@ -427,7 +427,7 @@ def get_spectra_async(self, object_name, get_query_payload=False,
427427 show_progress = True ):
428428 """
429429 Serves the same purpose as `~NedClass.get_spectra` but returns
430- file-handlers to the remote files rather than downloading them.
430+ file-handlers to the remote fits files rather than downloading them.
431431
432432 Parameters
433433 ----------
@@ -443,7 +443,8 @@ def get_spectra_async(self, object_name, get_query_payload=False,
443443
444444 """
445445 image_urls = self .get_image_list (object_name , item = 'spectra' ,
446- get_query_payload = get_query_payload )
446+ get_query_payload = get_query_payload ,
447+ file_format = 'fits' )
447448 if get_query_payload :
448449 return image_urls
449450 return [commons .FileContainer (U , encoding = 'binary' ,
@@ -487,9 +488,9 @@ def get_image_list(self, object_name, *, item='image', file_format='fits',
487488 url = Ned .SPECTRA_URL if item == 'spectra' else Ned .IMG_DATA_URL
488489 response = self ._request ("GET" , url = url , params = request_payload ,
489490 timeout = Ned .TIMEOUT )
490- return self .extract_image_urls (response .text , file_format = file_format )
491+ return self ._extract_image_urls (response .text , file_format = file_format )
491492
492- def extract_image_urls (self , html_in , file_format = 'fits' ):
493+ def _extract_image_urls (self , html_in , file_format = 'fits' ):
493494 """
494495 Helper function that uses regexps to extract the image urls from the
495496 given HTML.
0 commit comments