Skip to content

Better progress reporting#3052

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
dzenanz:betterProgress
Jan 10, 2022
Merged

Better progress reporting#3052
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
dzenanz:betterProgress

Conversation

@dzenanz
Copy link
Copy Markdown
Member

@dzenanz dzenanz commented Jan 6, 2022

This is a follow-up to #3014. Closes #2875.

Before 840bae7
for some filters progress would go from 0% to 100% twice,
overflowing from 100% to 0% about halfway.
After 840bae7,
the progress would fill up to 100% during first half of the work,
and stayed there the entire second half of the work.

With this commit, progress is reported as expected:
it fills up to 50% during first half of the work,
and fills up to 100% during second half of the work.
The progress should be filling up smoothly, in small increments.

This is because we now disable UpdateProgres in  MultiThreader
in class constructors of classes which report filter progress.

Closes InsightSoftwareConsortium#2875.
@github-actions github-actions Bot added the area:Core Issues affecting the Core module label Jan 6, 2022
@dzenanz dzenanz requested a review from blowekamp January 6, 2022 22:42
Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

🛤️ 🏎️

@dzenanz
Copy link
Copy Markdown
Member Author

dzenanz commented Jan 10, 2022

Brad can you test this with SimpleITK?

@blowekamp
Copy link
Copy Markdown
Member

Brad can you test this with SimpleITK?

@dzenanz I quickly rebuild and ran SimpleITK's test suit and it appears to be OK.

@dzenanz dzenanz merged commit f09104d into InsightSoftwareConsortium:master Jan 10, 2022
@dzenanz dzenanz deleted the betterProgress branch January 10, 2022 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some filters report progress both from theader and from themselves

3 participants