-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 SI prefixes for progress #2817
Conversation
@casperdcl Sure it is a great thing, who wants the byte precision anyway? 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!
Is this patch all we need for all progress bars that we have? I mean, no additional modifications required for any other bars, right? Just making sure. |
Yes nothing else needed.
It also reduces the file count precision when there are many files. |
@casperdcl Oh... How would that look now? Could you show us? Also, what are your thoughts on that from UI perspective? |
@efiop before/after recording added to description.
I think in certain circumstances users may prefer granular file counts over SI prefixes. |
Well, on the other hand, when talking about number of files, we always have complimentary progress bars for md5 computations and whatnot (and there will be additional coming) so, it is not like dvc will be looking frozen. So I think we can afford taking this behavior as a standard. Could consider a flag for granular output if someone asks for it. |
changes
560000/1000023
in progress bars to560k/1M
Note that this looses some precision for large numbers but looks nicer. Not sure if this is a good or bad thing.