Hi,
I’ve just started using Nipype and I’m running into problems setting up a workflow
I created two nodes,
E = Node(EddyCorrect(in_file=‘dat.nii.gz’, out_file=‘dat2.nii.gz’),name=‘E’)
B = Node(BET(out_file=‘dat2_brain.nii.gz’),name=‘B’)
and the workflow,
wf = Workflow(name=“wf”)
wf.connect([ (E,B [(‘out_file’,‘in_file’)]) ])
I thought this would pass out_file to the BET node, so I could perform BET on the corrected image.
But I get this error:
TypeError: ‘Node’ object has no attribute ‘getitem’
I’m probably using the wf.connect wrong, but I don’t know why.
Any help would be appreciated.