Skip to content

Commit

Permalink
Name the download volumes node.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed Jun 20, 2017
1 parent b89ac6d commit c6d44f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,14 @@ 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='scan_volumes')
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')
# Rename the download out_file to volume_files.
scan_volumes_xfc = IdentityInterface(fields=['volume_files'])
scan_volumes = pe.Node(scan_volumes_xfc)
scan_volumes = pe.Node(scan_volumes_xfc, name='scan_volumes')
exec_wf.connect(dl_vols_node, 'out_files',
dl_vols_node, 'volume_files')

Expand Down

0 comments on commit c6d44f9

Please sign in to comment.