Skip to content
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

Use astropy cache/data infrastructure throughout #19

Closed
eteq opened this issue Oct 10, 2012 · 4 comments
Closed

Use astropy cache/data infrastructure throughout #19

eteq opened this issue Oct 10, 2012 · 4 comments

Comments

@eteq
Copy link
Member

eteq commented Oct 10, 2012

This needs some thought about which things should be cached, but in general the astropy data downloading framework should be used

@keflavich
Copy link
Contributor

Could you post up a link to said framework (when available) ?

@eteq
Copy link
Member Author

eteq commented Oct 11, 2012

If you look at http://docs.astropy.org/en/latest/configs/index.html#functions, you'll see a set of functions of the form get_data_* - those transparently use the cache. In particular, you probably want either get_data_contents or get_data_fileobj, which accept a URL, and either give you the downloaded file or the cached version. Now that you mention it, there should probably be some mention of this in the narrative documentation, but the function docstrings pretty much tell you how to use it.

@keflavich
Copy link
Contributor

I believe this is redundant with issue #23 and addressed by PR #28 now - @astrofrog,@eteq, can you confirm that I've used the functions correctly?

@eteq
Copy link
Member Author

eteq commented Dec 23, 2012

I think you're right @keflavich - so once #28 is merged (or similar), we can close this, but not until then.

bsipocz pushed a commit that referenced this issue Jun 22, 2021
…actor

Picking permission errors when downloading a file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants