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
Error when using keyword arguments for the itk.elastix_registration_method #212
Comments
Maybe the first argument needs to be positional instead of keyword? @thewtex might know. |
Yes, we dispatch based on the type of the first positional argument (the fixed image). |
Thanks for the replies. If I understand correctly there is no plan for this to change for the moment so I guess only better documentation is required. Related to that, in an ubuntu machine with a fresh environment and installing the
I see kwargs instead of args are being used in ITK_Example12_DifferentSizeTransformation.ipynb so the error makes sense:
What is puzzling: how do these notebook tests pass in the CI? |
The error is related to issue InsightSoftwareConsortium#212 on using kwargs vs args to deduce the types of the input images
It seems that
itk.elastix_registration_method
doesn't deduce image types correctly when keyword arguments are used for the images instead of just arguments. See minimal example:And the output is:
I am not sure if it is discussed/documented somewhere else.
The text was updated successfully, but these errors were encountered: