|
14 | 14 | spm.SPMCommand().version
|
15 | 15 | """
|
16 | 16 |
|
| 17 | +# Standard library imports |
17 | 18 | from __future__ import print_function
|
18 | 19 | from builtins import range
|
19 | 20 | from builtins import object
|
20 |
| - |
21 |
| -__docformat__ = 'restructuredtext' |
22 |
| - |
23 |
| -# Standard library imports |
24 | 21 | import os
|
25 | 22 | from copy import deepcopy
|
26 | 23 |
|
|
38 | 35 | from ... import logging
|
39 | 36 | logger = logging.getLogger('interface')
|
40 | 37 |
|
| 38 | +__docformat__ = 'restructuredtext' |
| 39 | + |
41 | 40 |
|
42 | 41 | def func_is_3d(in_file):
|
43 | 42 | """Checks if input functional files are 3d."""
|
@@ -216,7 +215,8 @@ class SPMCommandInputSpec(BaseInterfaceInputSpec):
|
216 | 215 | usedefault=True)
|
217 | 216 | use_mcr = traits.Bool(desc='Run m-code using SPM MCR')
|
218 | 217 | use_v8struct = traits.Bool(True, min_ver='8', usedefault=True,
|
219 |
| - desc=('Generate SPM8 and higher compatible jobs') |
| 218 | + desc=('Generate SPM8 and higher ' |
| 219 | + 'compatible jobs') |
220 | 220 | )
|
221 | 221 |
|
222 | 222 |
|
@@ -476,14 +476,15 @@ def _make_matlab_command(self, contents, postscript=None):
|
476 | 476 | end\n
|
477 | 477 | """
|
478 | 478 | if self.mlab.inputs.mfile:
|
479 |
| - if isdefined(self.inputs.use_v8struct) and self.inputs.use_v8struct: |
| 479 | + if (isdefined(self.inputs.use_v8struct) and |
| 480 | + self.inputs.use_v8struct): |
480 | 481 | mscript += self._generate_job('jobs{1}.spm.%s.%s' %
|
481 | 482 | (self.jobtype, self.jobname),
|
482 | 483 | contents[0])
|
483 | 484 | else:
|
484 | 485 | if self.jobname in ['st', 'smooth', 'preproc', 'preproc8',
|
485 |
| - 'fmri_spec', 'fmri_est', 'factorial_design', |
486 |
| - 'defs']: |
| 486 | + 'fmri_spec', 'fmri_est', |
| 487 | + 'factorial_design', 'defs']: |
487 | 488 | # parentheses
|
488 | 489 | mscript += self._generate_job('jobs{1}.%s{1}.%s(1)' %
|
489 | 490 | (self.jobtype, self.jobname),
|
|
0 commit comments