Skip to content

Commit 3976524

Browse files
authored
Merge pull request #3265 from oliver-contier/epireg_wmseg
[FIX] EpiReg changed to not list certain outputs when 'wmseg' input is specified
2 parents 07af08f + 1777245 commit 3976524

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.zenodo.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
"name": "Perkins, L. Nathan"
488488
},
489489
{
490-
"affiliation": "Otto-von-Guericke-University Magdeburg, Germany",
490+
"affiliation": "Max Planck Institute for Human Cognitive and Brain Sciences",
491491
"name": "Contier, Oliver",
492492
"orcid": "0000-0002-2983-4709"
493493
},

nipype/interfaces/fsl/epi.py

+10-11
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)