Open JohannesBuchner opened 4 hours ago
Thanks @JohannesBuchner , this clarifies the issue. The cache
keyword simply isn't being passed, and on top of that, astropy's default file download caching system is being used rather than astroquery's, so the cached files are being put in the wrong place.
I think I can solve this pretty quickly, first by passing the cache kwarg here: https://github.com/astropy/astroquery/blob/3e26521019d12fb0996135bcffb0f72a64289bec/astroquery/sdss/core.py#L776
and then, possibly, by modifying FileContainer
to allow a module-specified path:
https://github.com/astropy/astroquery/blob/3e26521019d12fb0996135bcffb0f72a64289bec/astroquery/utils/commons.py#L298
On request by @keflavich, in https://github.com/astropy/astroquery/issues/1239#issuecomment-2424022405 I am report a bug.
I expected `SDSS.get_spectra(..., cache=False)' to not cache on disk.
But it does:
Also setting
SDSS.cache_location
does not helpversion: