Skip to content

Commit

Permalink
The mask workflow already uploads the mask file to XNAT.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 23, 2017
1 parent 85a6b63 commit 4215b92
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,6 @@ def run_with_dicom_input(self, actions, scan_input):
if 'roi' in actions:
roi_dirs = scan_input.roi
if roi_dirs:
if not self.collection:
raise PipelineError("ROI workflow requires the"
" collection option")
scan_pats = self.collection.patterns.scan[scan_input.scan]
if not scan_pats:
raise PipelineError("Scan patterns were not found"
Expand Down Expand Up @@ -784,13 +781,6 @@ def _create_workflow(self, subject, session, scan, actions, **opts):
function=mask)
mask_node = pe.Node(mask_xfc, name='mask')
mask_node.inputs.opts = mask_opts
# Upload the mask.
ul_mask_xfc = XNATUpload(
project=self.project, subject=subject, session=session,
scan=scan, resource='NIFTI', modality='MR'
)
ul_mask = pe.Node(ul_mask_xfc, name='upload_mask')
exec_wf.connect(mask_node, 'out_file', ul_mask, 'in_files')
self.logger.info("Enabled scan mask creation with options"
" %s." % mask_opts)
else:
Expand Down

0 comments on commit 4215b92

Please sign in to comment.