diff --git a/README.html b/README.html index 20cd9eb..91f340b 100644 --- a/README.html +++ b/README.html @@ -224,9 +224,10 @@
my_prbar = pyprind.ProgBar(n, track_time=False) # default = True
my_perc = pyprind.ProgPercent(n, track_time=False) # default = True
ProgBar
objects will print the elapsed time when the computation has finished.
+
ProgBar
objects will print the estimated time left and the total time
+when the computation has finished.
ProgPercent
objects reports the elapsed time during the computation and prints
-the estimated finish time of the loop (see section "Examples - ProgPercent").
The following examples shall illustrate the typical usage of the PyPrind package.
-A visualization can be viewed on YouTube: http://youtu.be/N3CRoB9Uo7Y
sebastian > python3 ./examples/ex1_progress_bar.py 0% 100% -[########################################] -Total time elapsed: 1.033 sec +[########################################] - ETA [sec]: 0.000 sec +Total time elapsed: 4.481 sec@@ -295,7 +296,7 @@
Screen Output
sebastian > python3 ./examples/ex1_percentage_indicator.py -[ 17 %] elapsed [sec]: 3.066 | ETA [sec]: 15.000 +[ 34 %] elapsed [sec]: 1.377 | ETA [sec]: 2.570@@ -310,7 +311,16 @@
VERSION 2.1.0
+VERSION 2.2.0
+ +VERSION 2.1.1
sebastian > python3 ./examples/ex1_progress_bar.py 0% 100% -[########################################] -Total time elapsed: 1.033 sec +[########################################] - ETA [sec]: 0.000 sec +Total time elapsed: 4.481 sec@@ -146,7 +147,7 @@ for i in range(n): **Screen Output**
sebastian > python3 ./examples/ex1_percentage_indicator.py -[ 17 %] elapsed [sec]: 3.066 | ETA [sec]: 15.000 +[ 34 %] elapsed [sec]: 1.377 | ETA [sec]: 2.570@@ -168,10 +169,18 @@ Changelog ========== -**VERSION 2.1.0** +**VERSION 2.2.0** + +- added ETA (estimated time until arrival) tracking to progress bar + by Taylan Aydinli +- better support for Python 2.x + + +**VERSION 2.1.1** - changed visuals of the printed progress for percentage indicators + **VERSION 2.1.0** - added ETA (estimated time until arrival) tracking by Taylan Aydinli diff --git a/pyprind/progbar.py b/pyprind/progbar.py index 34bba26..16f05a0 100644 --- a/pyprind/progbar.py +++ b/pyprind/progbar.py @@ -20,7 +20,6 @@ class ProgBar(Prog): def __init__(self, iterations, track_time=True, width=30, stream=2): Prog.__init__(self, iterations, track_time, stream) self.bar_width = width - print(self.bar_width) self._adjust_width() self.last_progress = 0 self._print_labels() diff --git a/setup.py b/setup.py index 234861d..2507a92 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup setup(name='PyPrind', - version='2.1.1', + version='2.2.0', description='Python Progress Indicator Utility', author='Sebastian Raschka', author_email='se.raschka@gmail.com', @@ -36,8 +36,7 @@ For more details and examples please see the package documentation. A short video demonstration of the progress tracking can be found on YouTube: -http://youtu.be/N3CRoB9Uo7Y - +http://youtu.be/Ex05RM9vLKE Contact