Skip to content

Commit

Permalink
Merge pull request #3123 from keflavich/issue3121
Browse files Browse the repository at this point in the history
BUG: Fix SDSS download caching
  • Loading branch information
bsipocz authored Dec 20, 2024
2 parents c19359b + ad2e207 commit 45b93c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ sdss

- Support new SDSS-V DR18 access URLs. [#3017]

- Fix download caching. [#3123]

simbad
^^^^^^

Expand Down
4 changes: 3 additions & 1 deletion astroquery/sdss/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def query_region_async(self, coordinates, *, radius=None,
region=True,
field_help=field_help,
get_query_payload=True,
data_release=data_release)
data_release=data_release,
cache=cache)

if width is not None:
width = u.Quantity(width, u.degree).value
Expand Down Expand Up @@ -774,6 +775,7 @@ def get_spectra_async(self, *, coordinates=None, radius=2. * u.arcsec,

link = linkstr.format(**format_args)
results.append(commons.FileContainer(link,
cache=cache,
encoding='binary',
remote_timeout=timeout,
show_progress=show_progress))
Expand Down

0 comments on commit 45b93c0

Please sign in to comment.