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):
767767 """
768768
769769 _local_version = SPMCommand ().version
770- if _local_version and _local_version [ 'name' ] == "SPM12" :
770+ if _local_version and '12.' in _local_version :
771771 _jobtype = 'tools'
772772 _jobname = 'oldseg'
773773 else :
@@ -895,7 +895,7 @@ class NewSegment(SPMCommand):
895895 input_spec = NewSegmentInputSpec
896896 output_spec = NewSegmentOutputSpec
897897 _local_version = SPMCommand ().version
898- if _local_version and _local_version [ 'name' ] == "SPM12" :
898+ if _local_version and '12.' in _local_version :
899899 _jobtype = 'spatial'
900900 _jobname = 'preproc'
901901 else :
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ def _list_outputs(self):
450450 from glob import glob
451451 outputs = self ._outputs ().get ()
452452 od = os .path .abspath (self .inputs .output_dir )
453-
453+
454454 ext = self .inputs .format
455455 if self .inputs .output_dir_struct == "flat" :
456456 outputs ['out_files' ] = glob (os .path .join (od , '*.%s' % ext ))
You can’t perform that action at this time.
0 commit comments