Skip to content
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

print progressbar also for n=1 and n=2 #261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CarloLucibello
Copy link

fix #258

if p.counter >= p.n
if p.counter == p.n && p.printed
if p.counter == p.n #&& p.printed
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timholy I'm not sure about the effect of this. What's the purpose of p.printed?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's part of ensuring you don't start printing only at finish: you have to print at least one update for this block to print anything at all.

@CarloLucibello
Copy link
Author

@timholy could you take a look? I run the tests locally and they seem fine by visual inspection

@timholy
Copy link
Owner

timholy commented Aug 4, 2023

The default behavior of not printing needs to be retained; users should opt-in if they want it to print. To make this customizable you'd probably have to add another field to Progress.

@timholy
Copy link
Owner

timholy commented Aug 4, 2023

Oh, I'd forgotten #258 (comment), sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no progress printed for lengths 1 or 2
2 participants