Skip to content

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