-
Notifications
You must be signed in to change notification settings - Fork 119
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
ENH: Exclude retrieval of filenames of masks from elastix library #895
ENH: Exclude retrieval of filenames of masks from elastix library #895
Conversation
Avoided confusing log messages saying "-fMask unspecified, so no fixed mask used" and "-mMask unspecified, so no moving mask used" for library users (including ITKElastix). Relates to issue InsightSoftwareConsortium/ITKElastix#127 "registration with mask does not work", reported by jslalu, June 11, 2021.
Thanks @N-Dekker, looks good at first glance. However, I have two questions:
|
Thanks @ntatsisk
Well, the print statement for "-priority" may indeed be removed, as the priority is untouched by the library. However "-out", "-threads", and "-t0" are actually specified by the library, internally, by Also I'd rather not add too many " |
@ntatsisk Shall I already merge this one, as a tiny step forward? It doesn't address the question how much logging is useful in general, for library users. But it does at least "mitigate" the problem of issue InsightSoftwareConsortium/ITKElastix#127 "registration with mask does not work". |
Sure @N-Dekker, feel free to merge it from my side. Do you mind sharing your intuition also about the following?
|
Maybe, but in general, I prefer to keep the output of a passing test minimal. In general I think a successfully passing test should just report "passed" to the dashboard. Too much output from a successful test can easily hide relevant information. I know, traditional ITK tests and elastix tests tend to be very verbose, even when they are passing successfully, and I don't really like it. For a failing unit test, I would like to see more information on the dashboard, though. "Internal elastix error: See elastix log (use LogToConsoleOn() or LogToFileOn())" isn't always enough for me. 🤔 We can make an exception for your case, of course, but let's not make unnecessary noise at the unit test dashboard! |
So I just switched on LogToConsole, at e04b09e, and now it says, at https://my.cdash.org/test/81063203
😢 Apparently that's a CTest feature: https://cmake.org/cmake/help/latest/variable/CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE.html#variable:CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE |
@N-Dekker, That's confusing to me... how can the rest of the tests provide the complete log output then? They are still run via CTest, right? |
Do they? https://my.cdash.org/test/81070708 says:
I guess it's a new feature! |
OK then it is cdash vs CI difference because the same test gives the entire output in the CI: https://github.com/SuperElastix/elastix/actions/runs/5070534017/jobs/9105697856?pr=898#step:14:10577 |
Temporarily added a test that produces a lot of output, for you 😺
elastix/Core/Main/GTesting/itkTransformixFilterGTest.cxx Lines 1465 to 1490 in 99947da
Output at https://github.com/SuperElastix/elastix/actions/runs/5072498636/jobs/9110282589 |
Avoided confusing log messages saying "-fMask unspecified, so no fixed mask used" and "-mMask unspecified, so no moving mask used" for library users (including ITKElastix).
Relates to issue InsightSoftwareConsortium/ITKElastix#127 "registration with mask does not work", reported by jslalu, June 11, 2021.
When reviewing, it may be helpful to ignore whitespace changes: https://github.com/SuperElastix/elastix/pull/895/files?w=1 So this pull request places the
GenerateFileNameContainer
calls for masks and the related log messages inside the existingif (!BaseComponent::IsElastixLibrary())
("if not library") clause.