-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix SDSS download caching #3123
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3123 +/- ##
=======================================
Coverage 67.54% 67.54%
=======================================
Files 233 233
Lines 18493 18493
=======================================
Hits 12491 12491
Misses 6002 6002 ☔ View full report in Codecov by Sentry. |
the linelist change seems to be unrelated, but I'm al for wrapping up draft PRs (there is one for linelists already :) ) |
I've determined that the second part of my suggestion here: Astroquery is using astroquery/astroquery/utils/commons.py Lines 348 to 353 in 3e26521
@bsipocz I'm not sure there's a good test for this. I'll keep working to try to figure one out, but I'd recommend merging this as-is. My by-hand test says it works: $ python3 -c 'from astroquery.sdss import SDSS; SDSS.get_spectra(plate=827, fiberID=23, mjd=52312, cache=False)'
Downloading https://data.sdss.org/sas/dr17/sdss/spectro/redux/26/spectra/0827/spec-0827-52312-0023.fits
|==========================================================================================================================================================================================================| 892k/892k (100.00%) 0s
$ ls -lh ~/.astropy/cache/download/url/0ad9*
ls: /Users/adam/.astropy/cache/download/url/0ad9*: No such file or directory |
OK, let's merge this as is. as for
Yes, I agree and it's on my roadmap (we'll have to work on some download tools for pyvo, too, so I foresee to upstream or remove or at least refactor a lot of astroquery along the way, too) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added changelog and one more caching consistency.
Fixes #3121.
However, I've only implemented a trivial thing so far; there's some digging to do before we move on with this.