Skip to content
Prev Previous commit
Next Next commit
corrections, pep8 check and test_auto_Normalize12.py
  • Loading branch information
miykael committed Nov 1, 2014
commit ab8f00c90da85ba40242adb106b0a44801775eb9
9 changes: 4 additions & 5 deletions nipype/interfaces/spm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname,
scans_for_fnames)
from .preprocess import (SliceTiming, Realign, Coregister, Normalize, Normalize12,
Segment, Smooth, NewSegment, DARTEL, DARTELNorm2MNI,
CreateWarped, VBMSegment)
from .preprocess import (SliceTiming, Realign, Coregister, Normalize,
Normalize12, Segment, Smooth, NewSegment, DARTEL,
DARTELNorm2MNI, CreateWarped, VBMSegment)
from .model import (Level1Design, EstimateModel, EstimateContrast, Threshold,
OneSampleTTestDesign, TwoSampleTTestDesign,
PairedTTestDesign, MultipleRegressionDesign)
from .utils import (Analyze2nii, CalcCoregAffine, ApplyTransform, Reslice,
ApplyInverseDeformation,ResliceToReference,DicomImport)

ApplyInverseDeformation, ResliceToReference, DicomImport)
4 changes: 2 additions & 2 deletions nipype/interfaces/spm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def _make_matlab_command(self, contents, postscript=None):
fprintf('SPM path: %s\\n', which('spm'));
spm('Defaults','fMRI');

if strcmp(name, 'SPM8') || strcmp(name, 'SPM12'),
if strcmp(name, 'SPM8') || strcmp(name(1:5), 'SPM12'),
spm_jobman('initcfg');
spm_get_defaults('cmdline', 1);
end\n
Expand Down Expand Up @@ -502,7 +502,7 @@ def _make_matlab_command(self, contents, postscript=None):
"""
if self.inputs.use_mcr:
mscript += """
if strcmp(name, 'SPM8') || strcmp(name, 'SPM12'),
if strcmp(name, 'SPM8') || strcmp(name(1:5), 'SPM12'),
close(\'all\', \'force\');
end;
"""
Expand Down
Loading