-
Notifications
You must be signed in to change notification settings - Fork 532
Revert "BUG: Registration interface failed multi-modal" #1181
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
Conversation
…tration Revert "BUG: Registration interface failed multi-modal"
@hjmjohnson - please test both the single modality and multimodal cases (and command lines) when you resubmit. also the doctests should be updated for the single modality case. |
also i just got this error - should also be fixed in an update.
|
@satra @chrisfilo reg1 - reg4 were all single modal tests. When a list is specified in a single modal test, only the first element of the list is used (as driven by the metric). reg5 was the multi-modal test case. NOTE: Even in reg5 test, the first stage is single modal (and only uses the first image) and the second stage is where multi-modal information is used. NOTE: The multi-modal imaging test was originally written by @chrisfilo back in 2012 We were trying to make the minimum changes necessary to fix the identified bug. I'll make another patch set that uses the simpler notation in the base class, and the for reg5 demonstrates the multi-modal fixed and moving images. |
@satra RE: "restore-state option is mutually exclusive with initial-moving-transform & initial-fixed-transform options." This is true. You can not provide both restore-state and "initial-moving-transform or inital-fixed-transform" Did you get that error in the doc-tests or in an external pipeline usage? |
@hjmjohnson https://github.com/hjmjohnson I pledge guilty as charged! I On Fri, Aug 14, 2015 at 11:28 AM, Hans Johnson notifications@github.com
|
@satra @chrisfilo I'm struggling to figure out how the multi-modal case is wrong. We are using the codebase before the reversion, and it seems to be working correctly for us for the 100's of cases that we have run. Can you please elaborate on how it is broken? Thanks, |
It breaks the unimodal cases (I expect you did not test those). Try running I hope this helps! On Fri, Aug 14, 2015 at 11:37 AM, Hans Johnson notifications@github.com
|
Before submitting PR I ran the following: python setup.py install; make specs; make check-before-commit There were no errors. Are these the doctest you are referring to? |
@hjmjohnson - the doctests pass because the single modality case was not considered. if you remove the second input from the fixed and moving images, the doctests start failing. i.e a user with the single case would suddenly have run into errors with the change. that's why chris, refined the tests to focus on the single input scenario. |
@satra @chrisfilo (I was confused because we run uni-modal registrations all the time successfully, but we alway pass them in as lists with single elements) I now know what to fix! :) I'll work on it right away. It should be an easy fix. |
On Fri, Aug 14, 2015 at 1:30 PM, Hans Johnson notifications@github.com
|
Reverts #1176
@hjmjohnson, @chrisfilo - reverting this change - breaks nipype.