- I have visited the source website, and in particular
read the known issues - I have searched through the issue tracker for duplicates
- I have mentioned version numbers, operating system and
environment, where applicable:import tqdm, sys print(tqdm.__version__, sys.version, sys.platform)
When setting some number of already done iterations with initial, the time per iteration is very wrong:
import time for _ in tqdm.tqdm(range(10), initial=90): # As if we had done already 90 iterations time.sleep(1) # Should show 1 it/s but shows something much faster
Even trying to play with the total number of iterations (even if it could be calculated as usual as initial+len(iterable) when possible), the time per iteration is wrong:
for _ in tqdm.tqdm(range(10), initial=90, total=100): # As if we had done already 90 iterations time.sleep(1) # Should show 1 it/s but shows something much faster
(total seems to be the full number of iterations, but even using the incremental number, total=10, doesn't work).
Version info:
4.24.0 2.7.13 (default, Mar 2 2018, 16:46:11)
[GCC 5.2.1 20150902 (Red Hat 5.2.1-2)] linux2