Skip to content

Commit ab8f00c

Browse files
committed
corrections, pep8 check and test_auto_Normalize12.py
1 parent 40d2869 commit ab8f00c

File tree

5 files changed

+172
-83
lines changed

5 files changed

+172
-83
lines changed

nipype/interfaces/spm/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname,
66
scans_for_fnames)
7-
from .preprocess import (SliceTiming, Realign, Coregister, Normalize, Normalize12,
8-
Segment, Smooth, NewSegment, DARTEL, DARTELNorm2MNI,
9-
CreateWarped, VBMSegment)
7+
from .preprocess import (SliceTiming, Realign, Coregister, Normalize,
8+
Normalize12, Segment, Smooth, NewSegment, DARTEL,
9+
DARTELNorm2MNI, CreateWarped, VBMSegment)
1010
from .model import (Level1Design, EstimateModel, EstimateContrast, Threshold,
1111
OneSampleTTestDesign, TwoSampleTTestDesign,
1212
PairedTTestDesign, MultipleRegressionDesign)
1313
from .utils import (Analyze2nii, CalcCoregAffine, ApplyTransform, Reslice,
14-
ApplyInverseDeformation,ResliceToReference,DicomImport)
15-
14+
ApplyInverseDeformation, ResliceToReference, DicomImport)

nipype/interfaces/spm/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _make_matlab_command(self, contents, postscript=None):
467467
fprintf('SPM path: %s\\n', which('spm'));
468468
spm('Defaults','fMRI');
469469
470-
if strcmp(name, 'SPM8') || strcmp(name, 'SPM12'),
470+
if strcmp(name, 'SPM8') || strcmp(name(1:5), 'SPM12'),
471471
spm_jobman('initcfg');
472472
spm_get_defaults('cmdline', 1);
473473
end\n
@@ -502,7 +502,7 @@ def _make_matlab_command(self, contents, postscript=None):
502502
"""
503503
if self.inputs.use_mcr:
504504
mscript += """
505-
if strcmp(name, 'SPM8') || strcmp(name, 'SPM12'),
505+
if strcmp(name, 'SPM8') || strcmp(name(1:5), 'SPM12'),
506506
close(\'all\', \'force\');
507507
end;
508508
"""

0 commit comments

Comments
 (0)