File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ class Segment(SPMCommand):
767
767
"""
768
768
769
769
_local_version = SPMCommand ().version
770
- if _local_version and _local_version [ 'name' ] == "SPM12" :
770
+ if _local_version and '12.' in _local_version :
771
771
_jobtype = 'tools'
772
772
_jobname = 'oldseg'
773
773
else :
@@ -895,7 +895,7 @@ class NewSegment(SPMCommand):
895
895
input_spec = NewSegmentInputSpec
896
896
output_spec = NewSegmentOutputSpec
897
897
_local_version = SPMCommand ().version
898
- if _local_version and _local_version [ 'name' ] == "SPM12" :
898
+ if _local_version and '12.' in _local_version :
899
899
_jobtype = 'spatial'
900
900
_jobname = 'preproc'
901
901
else :
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ def _list_outputs(self):
450
450
from glob import glob
451
451
outputs = self ._outputs ().get ()
452
452
od = os .path .abspath (self .inputs .output_dir )
453
-
453
+
454
454
ext = self .inputs .format
455
455
if self .inputs .output_dir_struct == "flat" :
456
456
outputs ['out_files' ] = glob (os .path .join (od , '*.%s' % ext ))
You can’t perform that action at this time.
0 commit comments