spm.Realign() in Nipype 0.8 version

21 views
Skip to first unread message

David....@olfac.univ-lyon1.fr

unread,
May 28, 2013, 8:50:52 AM5/28/13
to nipy...@googlegroups.com
Dear all,

I am new to Nipype, I have been using it for a few weeks now, very convenient!

I have however a bug since last time I did an update from 0.7 to 0.8, in the spm.Realign() function: I find that the first volume are not copied with the r prefix, as all other volumes. I was wondering if it is only me, or is it a bug that other have had with the new version.

Attach a piece of code that worked with version 0.7 (I have tested with an old version 0.4 and also it works), but not since last update:

cur_data_path = new_data_path + 'SUBJECT_P23/O_LIKING/'
files = [cur_data_path + f for f in os.listdir(cur_data_path) if f.endswith('.img') and f.startswith('P23')]
files.sort()

realign = spm.Realign()
realign.inputs.in_files = files
realign.inputs.register_to_mean = False
#realign.inputs.register_to_mean = True
realign.run()  

From what I saw in the most recent changes, the variable write_which role seems to have changed, but I could not figure out if that's the origin of the bug.

Thanks for your help!

David
Reply all
Reply to author
Forward
0 new messages