-
Notifications
You must be signed in to change notification settings - Fork 118
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
ParameterObject::WriteParameterFiles does not write the first map! #904
Comments
That probably means that no one has been using that method. And whoever tried to use it, directly or indirectly, gave up on using it because it does not work. The solution is to make it work appropriately 😄 |
With this commit `ParameterObject::WriteParameterFiles` writes _each_ maps to a file, including the first one. Aims to address issue #904 "ParameterObject::WriteParameterFiles does not write the first map!" A GoogleTest unit test is added, testing that each of the files specified by the `parameterFileNameVector` parameter is indeed written to disk.
With this commit `ParameterObject::WriteParameterFiles` writes _each_ maps to a file, including the first one. Aims to address issue #904 "ParameterObject::WriteParameterFiles does not write the first map!" A GoogleTest unit test is added, testing that each of the files specified by the `parameterFileNameVector` parameter is indeed written to disk.
With this commit `ParameterObject::WriteParameterFiles` writes _each_ maps to a file, including the first one. Aims to address issue #904 "ParameterObject::WriteParameterFiles does not write the first map!" A GoogleTest unit test is added, testing that each of the files specified by the `parameterFileNameVector` parameter is indeed written to disk.
@thewtex Thanks Matt! Please remember that these two lines should be removed, once ITKElastix has been updated to include elastix PR #967 (commit a57470b):
|
It appears that
ParameterObject::WriteParameterFiles
skips the first map from the specifiedparameterMapVector
:elastix/Core/Main/elxParameterObject.cxx
Lines 379 to 401 in 81324cf
The bug appears introduced with pull request #50 commit 9ba1683 "ENH: Add convenience methods for writing parameter files", merged on March 20, 2018, when the member function became as follows:
elastix/Core/Main/elxParameterObject.cxx
Lines 256 to 280 in 9ba1683
FYI @kaspermarstal
The text was updated successfully, but these errors were encountered: