Skip to content

Commit

Permalink
Connect the download volumes nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed Jun 20, 2017
1 parent c6d44f9 commit 2dec8e1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,16 +846,15 @@ def _create_workflow(self, subject, session, scan, actions, **opts):
dl_vols_xfc = XNATDownload(project=self.project,
resource='NIFTI',
file='volume*.nii.gz')
dl_vols_node = pe.Node(dl_vols_xfc,
name='download_scan_volumes')
exec_wf.connect(input_spec, 'subject', dl_vols_node, 'subject')
exec_wf.connect(input_spec, 'session', dl_vols_node, 'session')
exec_wf.connect(input_spec, 'scan', dl_vols_node, 'scan')
dl_vols = pe.Node(dl_vols_xfc, name='download_scan_volumes')
exec_wf.connect(input_spec, 'subject', dl_vols, 'subject')
exec_wf.connect(input_spec, 'session', dl_vols, 'session')
exec_wf.connect(input_spec, 'scan', dl_vols, 'scan')
# Rename the download out_file to volume_files.
scan_volumes_xfc = IdentityInterface(fields=['volume_files'])
scan_volumes = pe.Node(scan_volumes_xfc, name='scan_volumes')
exec_wf.connect(dl_vols_node, 'out_files',
dl_vols_node, 'volume_files')
exec_wf.connect(dl_vols, 'out_files',
scan_volumes, 'volume_files')

# Registration and modeling require a mask and bolus arrival.
if mask_node:
Expand Down

0 comments on commit 2dec8e1

Please sign in to comment.