-
Notifications
You must be signed in to change notification settings - Fork 535
Enh/tkregister2 #912
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/tkregister2 #912
Conversation
|
||
>>> from nipype.interfaces.freesurfer import Tkregister2 | ||
>>> tk2 = Tkregister2(reg_file='register.dat') | ||
>>> tk2.inputs.moving_image = 'func.nii.gz' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These doctests are failing:
TraitError: The 'moving_image' trait of a Tkregister2InputSpec instance must be an existing file name, but a value of 'func.nii.gz' <type 'str'> was specified.
This is happening because there isn't a file called func.nii.gz
in the test data directory (nipype/testing/data/
). You can either set an existing filename (probably best) or create the name issuing touch func.nii.gz
in that folder and adding the new file to the repository.
Same stuff for func2anat.mat
Other than that, this contribution is nice. Thanks a lot.
@oesteban thanks, i included the suggested modifications |
sorry, now the doctest passes but the autotest fails, guess i will have to go back to including the subjects_dir argument explicitly? |
@juhuntenburg - you just need to update with |
@satra great, thanks! |
Adding interface for Freesurfer tkregister2 command, so far only with basic functionality to convert fsl-style registration matrix to freesurfer-style matrix