Skip to content

Commit 4bde53c

Browse files
committed
fix: spm version check
1 parent d7fe007 commit 4bde53c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

nipype/interfaces/spm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)