From ee5e8410fe59738fda81c520c097ea6bb99ea8c8 Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Sat, 19 Oct 2024 13:44:54 -0400 Subject: [PATCH 1/3] pass 'cache' kwarg to file download --- astroquery/sdss/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astroquery/sdss/core.py b/astroquery/sdss/core.py index 56ea50db5a..09da9df10b 100644 --- a/astroquery/sdss/core.py +++ b/astroquery/sdss/core.py @@ -774,6 +774,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)) From 3145705508b4b7f45098704eccb5421d3dd47155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Thu, 19 Dec 2024 18:22:38 -0800 Subject: [PATCH 2/3] Adding chaneglog --- CHANGES.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 0a95d9945c..acebb42c4f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -103,6 +103,8 @@ sdss - Support new SDSS-V DR18 access URLs. [#3017] +- Fix download caching. [#3123] + simbad ^^^^^^ From ad2e207240321f699b73abd852d66d650bfafceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Thu, 19 Dec 2024 18:26:44 -0800 Subject: [PATCH 3/3] MAINT: adding one more caching consistency --- astroquery/sdss/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astroquery/sdss/core.py b/astroquery/sdss/core.py index 09da9df10b..1414eaddd0 100644 --- a/astroquery/sdss/core.py +++ b/astroquery/sdss/core.py @@ -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