Skip to content

Commit 15690b2

Browse files
authored
Merge pull request astropy#3608 from snbianco/zcut-update
Update Zcut request parameter
2 parents 8064473 + de661e4 commit 15690b2

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

CHANGES.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ mast
169169
default can be overridden by setting the ``enable_cloud_dataset`` configuration option to False. [#3534]
170170
- Results returned from ``MastMissions`` metadata query functions now include search parameters in the metadata of the ``astropy.table.Table`` object
171171
and column descriptions in the column metadata. [#3588]
172-
- Added ``pass_id`` as an alias for the ``pass`` column in query functions for the Roman mission to avoid conflicts with
172+
- Added ``pass_id`` as an alias for the ``pass`` column in query functions for the Roman mission to avoid conflicts with
173173
the reserved Python keyword. [#3588]
174+
- Update the cutout format request parameter in ``Zcut.download_cutouts`` to reflect a recent service change. [#3608]
174175

175176

176177
jplspec

astroquery/mast/cutouts.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@
88
99
"""
1010

11-
import warnings
12-
import time
1311
import json
14-
import zipfile
1512
import os
13+
import time
14+
import warnings
15+
import zipfile
1616
from io import BytesIO
1717

18-
import numpy as np
1918
import astropy.units as u
19+
import numpy as np
2020
from astropy.coordinates import Angle
21-
from astropy.table import Table
2221
from astropy.io import fits
22+
from astropy.table import Table
2323
from astropy.utils.decorators import deprecated_renamed_argument
2424

25-
from ..exceptions import InputWarning, NoResultsWarning, InvalidQueryError
26-
from .utils import parse_input_location
25+
from ..exceptions import InputWarning, InvalidQueryError, NoResultsWarning
2726
from .core import MastQueryWithLogin
28-
27+
from .utils import parse_input_location
2928

3029
__all__ = ["TesscutClass", "Tesscut", "ZcutClass", "Zcut"]
3130

@@ -665,7 +664,7 @@ def download_cutouts(self, coordinates, *, size=5, survey=None, cutout_format="f
665664
if survey:
666665
astrocut_request += "&survey={}".format(survey)
667666

668-
astrocut_request += "&format={}".format(cutout_format)
667+
astrocut_request += "&cutout_format={}".format(cutout_format)
669668

670669
for key in img_params:
671670
if key in self.accepted_img_params:

0 commit comments

Comments
 (0)