Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ mast
- Filtering by file extension or by a string column is now case-insensitive in ``MastMissions.filter_products``
and ``Observations.filter_products``. [#3427]

- Switch to use HTTP continuation for partial downloads. [#3448]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this needs a changelog as being an internal change, but probably doesn't hurt either.



Infrastructure, Utility and Other Changes and Additions
-------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion astroquery/mast/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def download_hsc_spectra(self, spectra, *, download_dir=None, cache=True, curl_f
bundler_response = response[0].json()

local_path = os.path.join(download_dir, "{}.sh".format(download_file))
self._download_file(bundler_response['url'], local_path, head_safe=True, continuation=False)
self._download_file(bundler_response['url'], local_path, head_safe=True)

status = "COMPLETE"
msg = None
Expand Down
4 changes: 2 additions & 2 deletions astroquery/mast/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,11 @@ def download_file(self, uri, *, local_path=None, base_url=None, cache=True, clou
else:
log.warning("Falling back to mast download...")
self._download_file(escaped_url, local_path,
cache=cache, head_safe=True, continuation=False,
cache=cache, head_safe=True,
verbose=verbose)
else:
self._download_file(escaped_url, local_path,
cache=cache, head_safe=True, continuation=False,
cache=cache, head_safe=True,
verbose=verbose)

# check if file exists also this is where would perform md5,
Expand Down
Loading