File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 22
22
from nipype .interfaces .base import (OutputMultiPath , TraitedSpec , isdefined ,
23
23
traits , InputMultiPath , File )
24
24
from nipype .interfaces .spm .base import (SPMCommand , scans_for_fname ,
25
- func_is_3d ,
25
+ func_is_3d , Info ,
26
26
scans_for_fnames , SPMCommandInputSpec )
27
27
from nipype .utils .filemanip import (fname_presuffix , filename_to_list ,
28
28
list_to_filename , split_filename )
@@ -599,9 +599,13 @@ class Segment(SPMCommand):
599
599
>>> seg.run() # doctest: +SKIP
600
600
601
601
"""
602
-
603
- _jobtype = 'spatial'
604
- _jobname = 'preproc'
602
+
603
+ if Info .version () and Info .version ()['name' ] == "SPM12" :
604
+ _jobtype = 'tools'
605
+ _jobname = 'oldseg'
606
+ else :
607
+ _jobtype = 'spatial'
608
+ _jobname = 'preproc'
605
609
606
610
input_spec = SegmentInputSpec
607
611
output_spec = SegmentOutputSpec
@@ -723,8 +727,12 @@ class NewSegment(SPMCommand):
723
727
724
728
input_spec = NewSegmentInputSpec
725
729
output_spec = NewSegmentOutputSpec
726
- _jobtype = 'tools'
727
- _jobname = 'preproc8'
730
+ if Info .version () and Info .version ()['name' ] == "SPM12" :
731
+ _jobtype = 'spatial'
732
+ _jobname = 'preproc'
733
+ else :
734
+ _jobtype = 'tools'
735
+ _jobname = 'preproc8'
728
736
729
737
def _format_arg (self , opt , spec , val ):
730
738
"""Convert input to appropriate format for spm
You can’t perform that action at this time.
0 commit comments