image.convert function is called incorrectly, causing error during registration #3282
Labels
bug
category: fixes an error in the code
priority:HIGH
SCT API: registration
context:
user requested
Raised by user on the SCT forum/email/GitHub. Be sure to notify them when fixed in a release.
Projects
Milestone
A user on the forum is reporting an error: https://forum.spinalcordmri.org/t/register-template-to-mt1/654
The bug is from this line of code:
https://github.com/neuropoly/spinalcordtoolbox/blob/0b7be07b7e64a57a303824e85930fbceb8b890f0/spinalcordtoolbox/registration/register.py#L373
The usage of this function doesn't match its parameters:
https://github.com/neuropoly/spinalcordtoolbox/blob/0b7be07b7e64a57a303824e85930fbceb8b890f0/spinalcordtoolbox/image.py#L1341-L1348
I believe
image.convert
came about in #2871/#2812. I'll dig into that and find out what the correct usage should be.The text was updated successfully, but these errors were encountered: