-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix maxinterval to adjust miniters to mininterval + fix dynamic_miniters when smoothing #250
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
Conversation
Current coverage is 91.86% (diff: 100%)@@ master #250 diff @@
==========================================
Files 7 7
Lines 535 541 +6
Methods 0 0
Messages 0 0
Branches 97 99 +2
==========================================
+ Hits 491 497 +6
Misses 43 43
Partials 1 1
|
@casperdcl There is no interaction between both, the maxinterval fix is related to its interaction with mininterval, not with the monitor thread. I will update this PR here to fit with the monitor thread. |
80f1086
to
69a5dbc
Compare
Ok I'm done with this PR :) |
8cade97
to
a65e347
Compare
515c660
to
11ffd3e
Compare
Also you noticed that in the docstring and readme, it was still specifying this about miniters:
Which is false since a long time. So I deleted this line. |
11ffd3e
to
66f8821
Compare
Rebased. Didn't take the time to do the asv test yet. |
Cool @casperdcl , I saw you made a fast version /EDIT: I think on only one commit it's hard to detect a regression using asv... |
…r than total) Signed-off-by: Stephen L. <lrq3000@gmail.com>
66f8821
to
a3bcc8a
Compare
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.
thanks. slight performance hit is just about measurable but we can live with it
Ah really? I expected no perf hit since it's only two new conditinals (with one being never evaluated except if smoothing=0). |
yes, you're right. no perf hit. was looking at the wrong thing |
... + Deprecation warning test to get 100% coverage again + Update readme and docstrings to provide more details about these parameters.
Fix regressions spotted in #249 (maxinterval fixing miniters too high) and in #258 (smoothing=0 breaks dynamic_miniters, also old calculation made tqdm faster, so it was reinstated).
Maxinterval would sometimes fix miniters to a value higher than it should, because it was adjusting miniters according to maxinterval instead of mininterval (the other conditions for dynamic_miniters are ok and adjusted better than maxinterval).
Also updated the readme and docstring to give more details on the various interval parameters (mininterval, maxinterval, miniters). They are critical for lots of people and define most of the somewhat weird behaviors of tqdm, so I think they ought to have extensive documentation both in the readme and the docstring.
TODO: