Skip to content

Commit e554136

Browse files
committed
Added backward compatibility for old segment.
1 parent 4014d56 commit e554136

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
@@ -599,9 +599,13 @@ class Segment(SPMCommand):
599599
>>> seg.run() # doctest: +SKIP
600600
601601
"""
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'
605609

606610
input_spec = SegmentInputSpec
607611
output_spec = SegmentOutputSpec

0 commit comments

Comments
 (0)