Skip to content

Commit 9f5e1de

Browse files
committed
FIX: PEP8 - E125 continuation line with same indent as next logical line
1 parent a0dde7a commit 9f5e1de

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

examples/fmri_ants_openfmri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
version = 0
4747
if fsl.Info.version() and \
48-
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
48+
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
4949
version = 507
5050

5151
fsl.FSLCommand.set_default_output_type('NIFTI_GZ')

nipype/interfaces/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,8 @@ def _run_interface(self, runtime):
11561156
full_path = os.path.join(curr_dir, infile)
11571157
self._match_path(full_path)
11581158
if (self.inputs.unpack_single and
1159-
len(self.result['out_paths']) == 1
1160-
):
1159+
len(self.result['out_paths']) == 1
1160+
):
11611161
for key, vals in self.result.items():
11621162
self.result[key] = vals[0]
11631163
else:

nipype/pipeline/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ class JoinNode(Node):
18221822
"""
18231823

18241824
def __init__(self, interface, name, joinsource, joinfield=None,
1825-
unique=False, **kwargs):
1825+
unique=False, **kwargs):
18261826
"""
18271827
18281828
Parameters

nipype/pipeline/plugins/base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,11 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
372372
jobid].hash_exists()
373373
logger.debug('Hash exists %s' % str(hash_exists))
374374
if (hash_exists and
375-
(self.procs[jobid].overwrite == False or
376-
(self.procs[jobid].overwrite == None and
377-
not self.procs[jobid]._interface.always_run)
378-
)
379-
):
375+
(self.procs[jobid].overwrite == False or
376+
(self.procs[jobid].overwrite == None and
377+
not self.procs[jobid]._interface.always_run)
378+
)
379+
):
380380
continue_with_submission = False
381381
self._task_finished_cb(jobid)
382382
self._remove_node_dirs()

nipype/pipeline/plugins/dagman.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def __init__(self, **kwargs):
7575
('_block', 'block', False),
7676
('_dagman_args', 'dagman_args', '')):
7777
if 'plugin_args' in kwargs \
78-
and not kwargs['plugin_args'] is None \
79-
and id_ in kwargs['plugin_args']:
78+
and not kwargs['plugin_args'] is None \
79+
and id_ in kwargs['plugin_args']:
8080
if id_ == 'wrapper_cmd':
8181
val = os.path.abspath(kwargs['plugin_args'][id_])
8282
elif id_ == 'block':
@@ -86,7 +86,7 @@ def __init__(self, **kwargs):
8686
setattr(self, var, val)
8787
# TODO remove after some time
8888
if 'plugin_args' in kwargs \
89-
and not kwargs['plugin_args'] is None:
89+
and not kwargs['plugin_args'] is None:
9090
plugin_args = kwargs['plugin_args']
9191
if 'template' in plugin_args:
9292
warn("the 'template' argument is deprecated, use 'initial_specs' instead")

nipype/pipeline/plugins/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DebugPlugin(PluginBase):
1313
def __init__(self, plugin_args=None):
1414
super(DebugPlugin, self).__init__(plugin_args=plugin_args)
1515
if plugin_args and "callable" in plugin_args and \
16-
hasattr(plugin_args['callable'], '__call__'):
16+
hasattr(plugin_args['callable'], '__call__'):
1717
self._callable = plugin_args['callable']
1818
else:
1919
raise ValueError('plugin_args must contain a callable function')

nipype/workflows/fmri/fsl/estimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def create_modelfit_workflow(name='modelfit', f_contrasts=False):
4444

4545
version = 0
4646
if fsl.Info.version() and \
47-
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
47+
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
4848
version = 507
4949

5050
modelfit = pe.Workflow(name=name)

nipype/workflows/fmri/fsl/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def create_featreg_preproc(name='featpreproc', highpass=True, whichvol='middle')
421421

422422
version = 0
423423
if fsl.Info.version() and \
424-
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
424+
LooseVersion(fsl.Info.version()) > LooseVersion('5.0.6'):
425425
version = 507
426426

427427
featpreproc = pe.Workflow(name=name)

tools/checkspecs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def test_specs(self, uri):
246246
if 'parent' in trait.__dict__:
247247
parent_metadata = list(getattr(trait, 'parent').__dict__.keys())
248248
if key not in allowed_keys + classinst._additional_metadata\
249-
+ parent_metadata:
249+
+ parent_metadata:
250250
bad_specs.append([uri, c, 'Inputs', traitname, key])
251251
if key == 'mandatory' and trait.mandatory is not None and not trait.mandatory:
252252
bad_specs.append([uri, c, 'Inputs', traitname, 'mandatory=False'])
@@ -361,7 +361,7 @@ def discover_modules(self):
361361
for dirname in dirnames[:]: # copy list - we modify inplace
362362
package_uri = '.'.join((root_uri, dirname))
363363
if (self._uri2path(package_uri) and
364-
self._survives_exclude(package_uri, 'package')):
364+
self._survives_exclude(package_uri, 'package')):
365365
modules.append(package_uri)
366366
else:
367367
dirnames.remove(dirname)
@@ -370,7 +370,7 @@ def discover_modules(self):
370370
module_name = filename[:-3]
371371
module_uri = '.'.join((root_uri, module_name))
372372
if (self._uri2path(module_uri) and
373-
self._survives_exclude(module_uri, 'module')):
373+
self._survives_exclude(module_uri, 'module')):
374374
modules.append(module_uri)
375375
return sorted(modules)
376376

0 commit comments

Comments
 (0)