-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Switch to use astropy's get_readable_fileobj
#23
Comments
This is great! High on the to-do list. Will this be part of the astropy 0.2 release? |
Yes, it's already in the developer version, so we can already update technically. I would do it, but I'm short on time, so feel free to try it out. The only trick to be aware of is that you have to use it as a context manager, not a normal function. |
@astrofrog - I started translating over some of the downloads. It would be nice if |
@keflavich - why is it that you want to turn off the progress bar? It's supposed to figure that out automatically (e.g. it only appears when you're at a terminal or the like) |
oh, ignore that comment - better to discuss this on #28 |
… per Issue #23 Conflicts: astroquery/ukidss/ukidss.py minor bugfix in IRSA fileobj useage added astropy.utils.data import (oops!)
… per Issue #23 Conflicts: astroquery/ukidss/ukidss.py minor bugfix in IRSA fileobj useage added astropy.utils.data import (oops!)
We recently put a lot of effort into developing a robust I/O routine in
astropy.utils.data
that can read local or remote data, supports caching, and shows a progress bar for downloads, e.g.:It supports on-the-fly decompression of gzip and bzip2 too. We should probably make use of this instead of
chunk_read
.The text was updated successfully, but these errors were encountered: