NiltonVolpato / python-progressbar

Text progress bar library for Python
Other
412 stars 105 forks source link

Adaptive ETA #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just discovered this project and really like it.

I had one quibble though, which is that the I found that the ETA doesn't adapt 
very well if progress speeds up or slows down. I made my own AdaptiveETA class 
that does this and wondered if it was something that you might want to include 
in the project (see the attached file).

The AdaptiveETA uses two different ETA estimates, one base on the total 
progress so far and one based on the progress during the most recent update 
reports. The reported ETA is a weighted average of these two where the weight 
depends on the how much progress has been made. When not much progress has been 
made. At the start the ETA will reflect the total rate of progress so far. At 
the end the ETA will only reflect the recent rate of progress.

Thanks,
Oscar

Original issue reported on code.google.com by oscar.j....@gmail.com on 27 Sep 2012 at 10:34

Attachments:

GoogleCodeExporter commented 8 years ago
I'm attaching to this post a script that demonstrates the ETA adapting to a 
change in speed.

Original comment by oscar.j....@gmail.com on 27 Sep 2012 at 10:38

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the code! It looks very useful. I'll try incorporating it this 
weekend.

Original comment by nilton.v...@gmail.com on 6 Oct 2012 at 2:29

GoogleCodeExporter commented 8 years ago
It took a while, but it's there now: 
http://code.google.com/p/python-progressbar/source/detail?r=68c8889525476803ee5c
9c880e00e3c8d8341dae
Thanks a lot!

Original comment by nilton.v...@gmail.com on 22 Dec 2012 at 6:03

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by oscar.j....@gmail.com on 22 Dec 2012 at 6:10