Hi, I’ve read posts similar to my issue, but I believe that my situation is slightly different, so I hope I’m not repeating any other posted questions.
I have an inputnode function that iterates over two files for input into a function called afniCopy:
def i2(input_params):
inputnode=pe.Node(niu.IdentityInterface(fields=[‘in_file’]), name=“inputnode”)
funct=‘funct.nii.gz’
struct=‘struct.nii.gz’
inputnode.iterables = [(‘in_file’, [funct, struct])]
return(inputnode)
it runs successfully, and produces output in the following two directories:
in_file…subdir…another_subdir…another_subdir…results…another_subdir…funct.nii.gz
in_file…subdir…another_subdir…another_subdir…results…another_subdir…struct.nii.gz
I need to be able to use the outfile from each directory as two separate inputs to another node.
Is there any way that I can access the outfile from each directory using its unique Exec ID (afniCopy.a0 and afniCopy.a1)?
Thanks very much