@@ -478,9 +478,10 @@ def anat_longitudinal_wf(subject_id: str, sub_list: list[dict], config: Configur
478478 except KeyError :
479479 input_creds_path = None
480480
481- workflow : pe .Workflow = initialize_nipype_wf (config , sub_list [0 ],
482- # just grab the first one for the name
483- name = "anat_longitudinal_pre-preproc" )
481+ workflow : pe .Workflow = initialize_nipype_wf (
482+ config ,
483+ sub_list [i ],
484+ name = "anat_longitudinal_pre-preproc" )
484485 rpool : ResourcePool
485486 workflow , rpool = initiate_rpool (workflow , config , session )
486487 pipeline_blocks = build_anat_preproc_stack (rpool , config )
@@ -490,10 +491,7 @@ def anat_longitudinal_wf(subject_id: str, sub_list: list[dict], config: Configur
490491
491492 rpool .gather_pipes (workflow , config )
492493 for key in strats_dct .keys ():
493- _resource = cast (tuple [pe .Node , str ], rpool .get_data (key ))
494- clone = _resource [0 ].clone (f"{ _resource [0 ].name } _{ session_id_list [i ]} " )
495- workflow .copy_input_connections (_resource [0 ], clone )
496- strats_dct [key ].append ((clone , _resource [1 ]))
494+ strats_dct [key ].append (cast (tuple [pe .Node , str ], rpool .get_data (key )))
497495 if not dry_run :
498496 workflow .run ()
499497 for key in strats_dct .keys (): # get the outputs from run-nodes
0 commit comments