Skip to content

Commit

Permalink
Correctly check for output.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 22, 2017
1 parent c18b037 commit b38991f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions qipipe/interfaces/mri_volcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ class MriVolCluster(CommandLine):
def _list_outputs(self):
cwd = os.getcwd()
outputs = self.output_spec().get()
if not isdefined(self.inputs.out_clusters_name):
outputs['out_cluster_file'] = path.join(cwd,
self.inputs.out_clusters_name)
if not isdefined(self.inputs.out_masked_name):
outputs['out_masked_file'] = path.join(cwd,
self.inputs.out_masked_name)
if isdefined(self.inputs.out_clusters_name):
outputs['out_cluster_file'] = path.join(
cwd, self.inputs.out_clusters_name
)
if isdefined(self.inputs.out_masked_name):
outputs['out_masked_file'] = path.join(
cwd, self.inputs.out_masked_name
)
return outputs

0 comments on commit b38991f

Please sign in to comment.