Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Show progress percentage only when requested by user #826

Closed
wants to merge 3 commits into from

Conversation

N-Dekker
Copy link
Member

@N-Dekker N-Dekker commented Mar 4, 2023

Until now, during a time consuming process, the progress percentage was shown only by elastix/transformix executables, not by the library. Moreover, it was then only shown if std::cout.tellp() would return -1. The return value of std::cout.tellp() appears platform dependent, and it does not really tell if showing the progress percentage is desirable. For details, see issue #756 "Executable progress indication appears suppressed on Windows".

This pull request proposes to add an extra bool flag to our elx::log class which specifies whether the user wants to see a progress percentage.

It extends the executable interface with an option -progress on, and it adds ShowProgressPercentageOn/Off member functions to the ITKElastix/library interface. By default, the progress percentage is not shown (which was the behavior on Windows until now anyway).

N-Dekker added 3 commits March 3, 2023 17:17
The check if `std::cout.tellp() == -1` does not work (anymore...)

Addresses issue #756 "Executable progress indication appears suppressed on Windows".
@N-Dekker N-Dekker requested review from mstaring and stefanklein March 4, 2023 09:54
@N-Dekker
Copy link
Member Author

N-Dekker commented Mar 9, 2023

FYI, A more fancy progress monitor was proposed to spdlog, but rejected: issue gabime/spdlog#854 and gabime/spdlog#1030 by Elmar Pruesse

@N-Dekker
Copy link
Member Author

Superseded by pull request #832 Support "ShowProgressPercentage" parameter (false by default), which adds an elastix parameter, instead of command-line option or On/Off member functions

@N-Dekker
Copy link
Member Author

Closed: abandoned, as it is superseded by pull request #832 Support "ShowProgressPercentage" parameter (false by default)

@N-Dekker N-Dekker closed this Mar 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant