Skip to content

Commit 9c5781e

Browse files
committed
FIX: PEP8 - E122 continuation line missing indentation or outdented
1 parent c08b0ee commit 9c5781e

File tree

13 files changed

+21
-21
lines changed

13 files changed

+21
-21
lines changed

doc/sphinxext/numpy_ext/numpydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def mangle_docstrings(app, what, name, obj, options, lines,
4646
lines[:] = str(doc).split(u"\n")
4747

4848
if app.config.numpydoc_edit_link and hasattr(obj, '__name__') and \
49-
obj.__name__:
49+
obj.__name__:
5050
if hasattr(obj, '__module__'):
5151
v = dict(full_name=u"%s.%s" % (obj.__module__, obj.__name__))
5252
else:

examples/rsfmri_vol_surface_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def get_names(files, suffix):
869869
iterfield=['timeseries_file'],
870870
name='getsubcortts')
871871
ts2txt.inputs.indices = [8] + list(range(10, 14)) + [17, 18, 26, 47] +\
872-
list(range(49, 55)) + [58]
872+
list(range(49, 55)) + [58]
873873
ts2txt.inputs.label_file = \
874874
os.path.abspath(('OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152_'
875875
'2mm_v2.nii.gz'))

examples/rsfmri_vol_surface_preprocessing_nipy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ def get_names(files, suffix):
859859
iterfield=['timeseries_file'],
860860
name='getsubcortts')
861861
ts2txt.inputs.indices = [8] + list(range(10, 14)) + [17, 18, 26, 47] +\
862-
list(range(49, 55)) + [58]
862+
list(range(49, 55)) + [58]
863863
ts2txt.inputs.label_file = \
864864
os.path.abspath(('OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152_'
865865
'2mm_v2.nii.gz'))

nipype/algorithms/modelgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ def _generate_standard_design(self, infolist,
315315
sessinfo[i]['cond'][cid]['amplitudes'] = \
316316
info.amplitudes[cid]
317317
if hasattr(info, 'tmod') and info.tmod and \
318-
len(info.tmod) > cid:
318+
len(info.tmod) > cid:
319319
sessinfo[i]['cond'][cid]['tmod'] = info.tmod[cid]
320320
if hasattr(info, 'pmod') and info.pmod and \
321-
len(info.pmod) > cid:
321+
len(info.pmod) > cid:
322322
if info.pmod[cid]:
323323
sessinfo[i]['cond'][cid]['pmod'] = []
324324
for j, name in enumerate(info.pmod[cid].name):
@@ -334,7 +334,7 @@ def _generate_standard_design(self, infolist,
334334
for j, r in enumerate(info.regressors):
335335
sessinfo[i]['regress'].insert(j, dict(name='', val=[]))
336336
if hasattr(info, 'regressor_names') and \
337-
info.regressor_names is not None:
337+
info.regressor_names is not None:
338338
sessinfo[i]['regress'][j]['name'] = \
339339
info.regressor_names[j]
340340
else:

nipype/algorithms/rapidart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def _detect_outliers_core(self, imgfile, motionfile, runidx, cwd=None):
377377
vol = data[:, :, :, t0]
378378
# Use an SPM like approach
379379
mask_tmp = vol > \
380-
(_nanmean(vol) / self.inputs.global_threshold)
380+
(_nanmean(vol) / self.inputs.global_threshold)
381381
mask = mask * mask_tmp
382382
for t0 in range(timepoints):
383383
vol = data[:, :, :, t0]
@@ -391,7 +391,7 @@ def _detect_outliers_core(self, imgfile, motionfile, runidx, cwd=None):
391391
for t0 in range(timepoints):
392392
vol = data[:, :, :, t0]
393393
mask_tmp = vol > \
394-
(_nanmean(vol) / self.inputs.global_threshold)
394+
(_nanmean(vol) / self.inputs.global_threshold)
395395
mask[:, :, :, t0] = mask_tmp
396396
g[t0] = np.nansum(vol * mask_tmp) / np.nansum(mask_tmp)
397397
elif masktype == 'file': # uses a mask image to determine intensity

nipype/fixes/numpy/testing/noseclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _find(self, tests, obj, name, module, source_lines, globs, seen):
8181

8282
# Local shorthands
8383
from inspect import isroutine, isclass, ismodule, isfunction, \
84-
ismethod
84+
ismethod
8585

8686
# Look for tests in a module's contained objects.
8787
if ismodule(obj) and self._recurse:

nipype/interfaces/ants/legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _list_outputs(self):
250250

251251
outputs['template_files'].append(os.path.realpath(file_))
252252
outputs['final_template_file'] = \
253-
os.path.realpath('%stemplate.nii.gz' %
253+
os.path.realpath('%stemplate.nii.gz' %
254254
self.inputs.out_prefix)
255255
outputs['subject_outfiles'] = []
256256
for filename in self.inputs.in_files:

nipype/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ def _run_interface(self, runtime, correct_return_codes=[0]):
15001500
runtime = run_command(runtime, output=self.inputs.terminal_output,
15011501
redirect_x=self._redirect_x)
15021502
if runtime.returncode is None or \
1503-
runtime.returncode not in correct_return_codes:
1503+
runtime.returncode not in correct_return_codes:
15041504
self.raise_exception(runtime)
15051505

15061506
return runtime

nipype/interfaces/fsl/tests/test_dti.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_randomise2():
169169
results = rand3.run(input_4D='infile3',
170170
output_rootname='outfile3')
171171
yield assert_equal, results.runtime.cmdline, \
172-
'randomise -i infile3 -o outfile3'
172+
'randomise -i infile3 -o outfile3'
173173

174174
# test arguments for opt_map
175175
opt_map = {'demean_data': ('-D', True),
@@ -252,7 +252,7 @@ def test_Randomise_parallel():
252252
results = rand3.run(input_4D='infile3',
253253
output_rootname='outfile3')
254254
yield assert_equal, results.runtime.cmdline, \
255-
'randomise_parallel -i infile3 -o outfile3'
255+
'randomise_parallel -i infile3 -o outfile3'
256256

257257
# test arguments for opt_map
258258
opt_map = {'demean_data': ('-D', True),
@@ -371,7 +371,7 @@ def test_Vec_reg():
371371
affineTmat='tmat3.mat',)
372372

373373
yield assert_equal, results.runtime.cmdline, \
374-
'vecreg -i infile3 -o outfile3 -r MNI152 -t tmat3.mat'
374+
'vecreg -i infile3 -o outfile3 -r MNI152 -t tmat3.mat'
375375
yield assert_not_equal, results.runtime.returncode, 0
376376
yield assert_equal, results.interface.inputs.infile, 'infile3'
377377
yield assert_equal, results.interface.inputs.outfile, 'outfile3'

nipype/interfaces/tests/test_io.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ def test_datasink_substitutions():
200200
setattr(ds.inputs, '@outdir', files)
201201
ds.run()
202202
yield assert_equal, \
203-
sorted([os.path.basename(x) for
203+
sorted([os.path.basename(x) for
204204
x in glob.glob(os.path.join(outdir, '*'))]), \
205-
['!-yz-b.n', 'ABABAB.n'] # so we got re used 2nd and both patterns
205+
['!-yz-b.n', 'ABABAB.n'] # so we got re used 2nd and both patterns
206206
shutil.rmtree(indir)
207207
shutil.rmtree(outdir)
208208

@@ -249,9 +249,9 @@ def test_s3datasink_substitutions():
249249
setattr(ds.inputs, '@outdir', files)
250250
ds.run()
251251
yield assert_equal, \
252-
sorted([os.path.basename(x) for
252+
sorted([os.path.basename(x) for
253253
x in glob.glob(os.path.join(outdir, '*'))]), \
254-
['!-yz-b.n', 'ABABAB.n'] # so we got re used 2nd and both patterns
254+
['!-yz-b.n', 'ABABAB.n'] # so we got re used 2nd and both patterns
255255

256256
bkt = conn.get_bucket(ds.inputs.bucket)
257257
bkt_files = list(k for k in bkt.list())

nipype/pipeline/plugins/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def run(self, graph, config, updatehash=False):
233233
# setup polling - TODO: change to threaded model
234234
notrun = []
235235
while np.any(self.proc_done == False) | \
236-
np.any(self.proc_pending == True):
236+
np.any(self.proc_pending == True):
237237
toappend = []
238238
# trigger callbacks for any pending results
239239
while self.pending_tasks:

nipype/pipeline/plugins/dagman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _submit_graph(self, pyfiles, dependencies, nodes):
130130
if not wrapper_cmd is None:
131131
specs['executable'] = wrapper_cmd
132132
specs['nodescript'] = \
133-
'%s %s %s' % (wrapper_args % specs, # give access to variables
133+
'%s %s %s' % (wrapper_args % specs, # give access to variables
134134
sys.executable,
135135
pyscript)
136136
submitspec = template % specs

tools/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ def get_file_url(object):
9393
info = nipype.get_info()
9494
shortfile = os.path.join('nipype', filename.split('nipype/')[-1])
9595
uri = 'http://github.com/nipy/nipype/tree/%s/%s#L%d' % \
96-
(info['commit_hash'],
96+
(info['commit_hash'],
9797
shortfile, lines[1])
9898
return uri

0 commit comments

Comments
 (0)