Skip to content

Commit 4014d56

Browse files
committed
different names in SPM12
1 parent 7bf9d11 commit 4014d56

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from nipype.interfaces.base import (OutputMultiPath, TraitedSpec, isdefined,
2323
traits, InputMultiPath, File)
2424
from nipype.interfaces.spm.base import (SPMCommand, scans_for_fname,
25-
func_is_3d,
25+
func_is_3d, Info,
2626
scans_for_fnames, SPMCommandInputSpec)
2727
from nipype.utils.filemanip import (fname_presuffix, filename_to_list,
2828
list_to_filename, split_filename)
@@ -723,8 +723,12 @@ class NewSegment(SPMCommand):
723723

724724
input_spec = NewSegmentInputSpec
725725
output_spec = NewSegmentOutputSpec
726-
_jobtype = 'tools'
727-
_jobname = 'preproc8'
726+
if Info.version() and Info.version()['name'] == "SPM12":
727+
_jobtype = 'spatial'
728+
_jobname = 'preproc'
729+
else:
730+
_jobtype = 'tools'
731+
_jobname = 'preproc8'
728732

729733
def _format_arg(self, opt, spec, val):
730734
"""Convert input to appropriate format for spm

0 commit comments

Comments
 (0)