Skip to content

Commit 9c2749d

Browse files
committed
Merge branch 'master' into fix/TVTKPolyDataWriter
2 parents 262f71d + 52d64c3 commit 9c2749d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ class ReconAllInputSpec(CommandLineInputSpec):
609609
T1_files = InputMultiPath(File(exists=True), argstr='-i %s...',
610610
desc='name of T1 file to process')
611611
T2_file = File(exists=True, argstr="-T2 %s", min_ver='5.3.0',
612-
desc='Use a T2 image to refine the cortical surface')
612+
desc='Convert T2 image to orig directory')
613+
use_T2 = traits.Bool(argstr="-T2pial", min_ver='5.3.0',
614+
desc='Use converted T2 to refine the cortical surface')
613615
openmp = traits.Int(argstr="-openmp %d",
614616
desc="Number of processors to use in parallel")
615617
subjects_dir = Directory(exists=True, argstr='-sd %s', hash_files=False,

nipype/interfaces/freesurfer/tests/test_auto_ReconAll.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def test_ReconAll_inputs():
3636
),
3737
terminal_output=dict(nohash=True,
3838
),
39+
use_T2=dict(argstr='-T2pial',
40+
min_ver='5.3.0',
41+
),
3942
)
4043
inputs = ReconAll.input_spec()
4144

nipype/interfaces/freesurfer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def _list_outputs(self):
360360
source = self.inputs.source_file
361361
else:
362362
source = self.inputs.source_annot_file
363-
363+
364364
# Some recon-all files don't have a proper extension (e.g. "lh.thickness")
365365
# so we have to account for that here
366366
bad_extensions = [".%s" % e for e in ["area", "mid", "pial", "avg_curv", "curv", "inflated",

0 commit comments

Comments
 (0)