Skip to content

Commit

Permalink
doing the same to other classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina committed Dec 13, 2022
1 parent 2ba523a commit b35844f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions astroquery/mast/cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, objectname=None, movi
return Table(sector_dict)

def download_cutouts(self, *, coordinates=None, size=5, sector=None, path=".", inflate=True,
objectname=None, moving_target=False, mt_type=None):
objectname=None, moving_target=False, mt_type=None, verbose=False):
"""
Download cutout target pixel file(s) around the given coordinates with indicated size.
Expand Down Expand Up @@ -301,7 +301,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, path=".", i
localpath_table['Local Path'] = [zipfile_path]
return localpath_table

print("Inflating...")
if verbose: print("Inflating...")
# unzipping the zipfile
zip_ref = zipfile.ZipFile(zipfile_path, 'r')
cutout_files = zip_ref.namelist()
Expand Down Expand Up @@ -477,7 +477,8 @@ def get_surveys(self, coordinates, *, radius="0d"):
warnings.warn("Coordinates are not in an available deep field survey.", NoResultsWarning)
return survey_json

def download_cutouts(self, coordinates, *, size=5, survey=None, cutout_format="fits", path=".", inflate=True, **img_params):
def download_cutouts(self, coordinates, *, size=5, survey=None, cutout_format="fits", path=".", inflate=True,
verbose=False, **img_params):
"""
Download cutout FITS/image file(s) around the given coordinates with indicated size.
Expand Down Expand Up @@ -560,7 +561,7 @@ def download_cutouts(self, coordinates, *, size=5, survey=None, cutout_format="f
localpath_table['Local Path'] = [zipfile_path]
return localpath_table

print("Inflating...")
if verbose: print("Inflating...")
# unzipping the zipfile
zip_ref = zipfile.ZipFile(zipfile_path, 'r')
cutout_files = zip_ref.namelist()
Expand Down

0 comments on commit b35844f

Please sign in to comment.