@@ -349,7 +349,7 @@ def get_maps(self, query_table_list, missions=__ALL_STRING,
349349 return maps
350350
351351 def get_images (self , position , radius = __ZERO_ARCMIN_STRING , missions = __ALL_STRING ,
352- download_directory = __MAPS_STRING , cache = True ):
352+ download_dir = __MAPS_STRING , cache = True ):
353353 """
354354 This method gets the fits files available for the selected position and
355355 mission and downloads all maps to the the selected folder.
@@ -369,7 +369,7 @@ def get_images(self, position, radius=__ZERO_ARCMIN_STRING, missions=__ALL_STRIN
369369 Can be either a specific mission or a list of missions (all mission
370370 names are found in list_missions()) or 'all' to search in all
371371 missions. Defaults to 'all'.
372- download_directory : string, optional
372+ download_dir : string, optional
373373 The folder where all downloaded maps should be stored.
374374 Defaults to a folder called 'Maps' in the current working directory.
375375 cache : bool, optional
@@ -417,10 +417,10 @@ def get_images(self, position, radius=__ZERO_ARCMIN_STRING, missions=__ALL_STRIN
417417 self ._get_maps_for_mission (
418418 map_query_result [query_mission ],
419419 query_mission ,
420- download_directory ,
420+ download_dir ,
421421 cache ))
422422
423- print ("Maps available at %s" % os .path .abspath (download_directory ))
423+ print ("Maps available at %s" % os .path .abspath (download_dir ))
424424 return maps
425425
426426 def _sanitize_input_position (self , position ):
@@ -466,12 +466,12 @@ def _sanitize_input_table_list(self, table_list):
466466 return table_list
467467 raise ValueError ("Query_table_list must be an astropy.utils.TableList" )
468468
469- def _get_maps_for_mission (self , maps_table , mission , download_directory , cache ):
469+ def _get_maps_for_mission (self , maps_table , mission , download_dir , cache ):
470470 maps = []
471471
472472 if (len (maps_table [self .__PRODUCT_URL_STRING ]) > 0 ):
473473 mission_directory = self ._create_mission_directory (mission ,
474- download_directory )
474+ download_dir )
475475 print ("Starting download of %s data. (%d files)"
476476 % (mission , len (maps_table [self .__PRODUCT_URL_STRING ])))
477477 for index in range (len (maps_table )):
@@ -540,11 +540,11 @@ def _remove_extra_herschel_directory(self, file_and_directory_name,
540540 os .path .join (full_directory_path , file_name ))
541541 return file_name
542542
543- def _create_mission_directory (self , mission , download_directory ):
544- if (download_directory == self .__MAPS_STRING ):
543+ def _create_mission_directory (self , mission , download_dir ):
544+ if (download_dir == self .__MAPS_STRING ):
545545 mission_directory = self .__MAPS_STRING + "/" + mission
546546 else :
547- mission_directory = (download_directory + "/" + self .__MAPS_STRING +
547+ mission_directory = (download_dir + "/" + self .__MAPS_STRING +
548548 "/" + mission )
549549 if not os .path .exists (mission_directory ):
550550 os .makedirs (mission_directory )
0 commit comments