Skip to content

Commit 4f8aa4b

Browse files
changed _list_outputs() method of EpiReg interface to check whether 'seg' output exists in case 'wmseg' input is already provided
1 parent 07af08f commit 4f8aa4b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,20 +1306,19 @@ def _list_outputs(self):
13061306
outputs["epi2str_inv"] = os.path.join(
13071307
os.getcwd(), self.inputs.out_base + "_inv.mat"
13081308
)
1309-
1309+
if not isdefined(self.inputs.wmseg):
1310+
outputs["wmedge"] = os.path.join(
1311+
os.getcwd(), self.inputs.out_base + "_fast_wmedge.nii.gz"
1312+
)
1313+
outputs["wmseg"] = os.path.join(
1314+
os.getcwd(), self.inputs.out_base + "_fast_wmseg.nii.gz"
1315+
)
1316+
outputs["seg"] = os.path.join(
1317+
os.getcwd(), self.inputs.out_base + "_fast_seg.nii.gz"
1318+
)
13101319
outputs["epi2str_mat"] = os.path.join(
13111320
os.getcwd(), self.inputs.out_base + ".mat"
13121321
)
1313-
outputs["wmedge"] = os.path.join(
1314-
os.getcwd(), self.inputs.out_base + "_fast_wmedge.nii.gz"
1315-
)
1316-
outputs["wmseg"] = os.path.join(
1317-
os.getcwd(), self.inputs.out_base + "_fast_wmseg.nii.gz"
1318-
)
1319-
outputs["seg"] = os.path.join(
1320-
os.getcwd(), self.inputs.out_base + "_fast_seg.nii.gz"
1321-
)
1322-
13231322
return outputs
13241323

13251324

0 commit comments

Comments
 (0)