-
Notifications
You must be signed in to change notification settings - Fork 16
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
Report to users what's going on #80
Comments
@cdeil I'm not entirely sure on how to go about implementing the But, that doesn't seem like the best solution. I think the best way would be to contain all of the functionality within |
Yes, eventually changes to the My suggestion would be that you introduce the new
in
and then implement a Of course one could also return the painter to give the user access to all the results, that would be a simple and OK solution. The idea of introducing a new results class is to a certain degree to give users something simple with just the most common things they want, and to not have to find the "useful bits" on the painter, besides the complex painting algorithm-related things they won't care about. |
I had a look at the Bottom line for the |
Actually I had a look at |
The current user experience with our package is pretty bad.
If I call
make_sky_image
to make a large sky image:https://gist.github.com/cdeil/796875efe4a3620987b9f62eb278cfbc
it takes ~ a minute and I have no idea what's going on.
We should change our code to (optionally, at medium verbosity level by default) communicate to users what's happening:
@adl1995 - I'm not sure how best to implement this yet. I guess we could start emitting log messages, or we could use a progress bar (http://docs.astropy.org/en/stable/api/astropy.utils.console.ProgressBarOrSpinner.html) ?
One thing I definitely think we should implement is a
HiPSDrawResult
class (or something like that), that is returned bymake_sky_image
instead of just the Numpy array.It would have a
repr
that prints the info mentioned above (how long things took, how much memory was used, how much data was fetched from the web), and also has convenience methods to write and plot the resulting sky image:The text was updated successfully, but these errors were encountered: