-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Improve caching documentation #1239
Comments
This is a duplication of #300, but I'm closing that one given there are more concrete todo items on this one. |
Dangit, I searched for 'cache' but not 'caching'. My memory fails. |
I only remembered because of the recent simbad issues 😄 |
Anyone on this? |
no one, please go ahead! |
Can you pls mention the doc where i have to insert the new info I cannot find it in docs folder |
here cache folder is not showing in the cloned repo because the repo cloned is of older version but the following page is available in newer version- so, how to make changes in this page? |
can I take this up, I am an outreachy applicant |
I'm afraid this is a bit miscategorized to be package-novice in a sense it is best suited for users running into cache issues. E.g. we cannot give much guidance on where to document these things to be the most effective, where the users would most likely see it. So you certainly have a go with it, but it would be the most impactful if there was input from users. You can reach some of them on the astroquery slack channel, or the astropy mailing list, or ping the people in issues from the past 1-2 years where the solution was something cache related where the extra docs would help. So, in summary, you've welcome to work on this, but it is not a straightforward issue because of the meta layer. |
I DID NOT KNOW IT WAS THIS VAST, I WOULD SKIP THIS WHILE I GET FAMILIAR
WITH ASTROPY. I WOULD APPRECIATE LINKS TO package-novice issues.Thanks
…On Tue, Oct 20, 2020 at 6:30 PM Brigitta Sipőcz ***@***.***> wrote:
I'm afraid this is a bit miscategorized to be package-novice in a sense it
is best suited for users running into cache issues. E.g. we cannot give
much guidance on where to document these things to be the most effective,
where the users would most likely see it.
Maybe a frequent solutions to issues on the opening page, Troubleshouting?
So you certainly have a go with it, but it would be the most impactful if
there was input from users. You can reach some of them on the astroquery
slack channel, or the astropy mailing list, or ping the people in issues
from the past 1-2 years where the solution was something cache related
where the extra docs would help.
So, in summary, you've welcome to work on this, but it is not a
straightforward issue because of the meta layer.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APFTMSFCDVTDTHS7SLBUQEDSLXCLHANCNFSM4FV2XTQA>
.
|
@ceb8 - while the cache stuff is still fresh, could you have a look at the checklist above and see what else is missing in the updated docs? |
@keflavich Can you explain what you mean by the last item? |
My idea was that we should have global documentation about the cache & timeout parameters, and each individual function's docstring that describes those parameters briefly should link back to the (longer and more complete) global documentation. |
On sciserver.org, the home directory has very limited space, and one is supposed to work in workspace/Storage//persistent/. It would be good to be able to set the astroquery cache directory to another location. Some workarounds:
This is unexpected because I am using A environment variable or other way to influence caching could be useful. |
@JohannesBuchner rslt = SDSS.query_region(SkyCoord(200.5*u.deg, 20*u.deg), radius=45*u.arcsec, cache=False, spectro=True)
spec = SDSS.get_spectra(matches=rslt, cache=False) The other workaround for your situation is to change the SDSS.cache_location = 'workspace/Storage//persistent/' If you're seeing a case where |
@ceb8 - is astroquery still on your radar? It would be nice to wrap up the caching issues and make it all consistent and well documented. |
@bsipocz Yes. I don't know when I will get back to it. But it's definitely on my radar. |
There's very little documentation on the caching process, and users sometimes complain about the cache filling up.
In short, we need documentation stating:
~/.astropy/cache/astroquery
[Edit]:
The text was updated successfully, but these errors were encountered: