Skip to content

Commit bc813b5

Browse files
committed
sty: white spaces
1 parent 47b9aa7 commit bc813b5

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ class Segment(SPMCommand):
599599
>>> seg.run() # doctest: +SKIP
600600
601601
"""
602-
602+
603603
if Info.version() and Info.version()['name'] == "SPM12":
604604
_jobtype = 'tools'
605605
_jobname = 'oldseg'

nipype/pipeline/engine.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,8 +2045,8 @@ def __init__(self, interface, iterfield, name, serial=False, nested=False, **kwa
20452045
serial : boolean
20462046
flag to enforce executing the jobs of the mapnode in a serial manner rather than parallel
20472047
nested : boolea
2048-
support for nested lists, if set the input list will be flattened before running, and the
2049-
nested list structure of the outputs will be resored
2048+
support for nested lists, if set the input list will be flattened before running, and the
2049+
nested list structure of the outputs will be resored
20502050
See Node docstring for additional keyword arguments.
20512051
"""
20522052

@@ -2150,7 +2150,7 @@ def _make_nodes(self, cwd=None):
21502150
cwd = self.output_dir()
21512151
if self.nested:
21522152
nitems = len(flatten(filename_to_list(getattr(self.inputs, self.iterfield[0]))))
2153-
else:
2153+
else:
21542154
nitems = len(filename_to_list(getattr(self.inputs, self.iterfield[0])))
21552155
for i in range(nitems):
21562156
nodename = '_' + self.name + str(i)
@@ -2216,14 +2216,14 @@ def _collate_results(self, nodes):
22162216
defined_vals = [isdefined(val) for val in values]
22172217
if any(defined_vals) and self._result.outputs:
22182218
setattr(self._result.outputs, key, values)
2219-
2219+
22202220
if self.nested:
22212221
for key, _ in self.outputs.items():
22222222
values = getattr(self._result.outputs, key)
22232223
if isdefined(values):
22242224
values = unflatten(values, filename_to_list(getattr(self.inputs, self.iterfield[0])))
22252225
setattr(self._result.outputs, key, values)
2226-
2226+
22272227
if returncode and any([code is not None for code in returncode]):
22282228
msg = []
22292229
for i, code in enumerate(returncode):

nipype/pipeline/tests/test_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def func1(in1):
487487
n1.run()
488488
print n1.get_output('out')
489489
yield assert_equal, n1.get_output('out'), [[2,[3]],4,[5,6]]
490-
490+
491491
n2 = MapNode(Function(input_names=['in1'],
492492
output_names=['out'],
493493
function=func1),

nipype/utils/misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def str2bool(v):
206206
return False
207207
else:
208208
raise ValueError("%s cannot be converted to bool"%v)
209-
209+
210210
def flatten(S):
211211
if S == []:
212212
return S
@@ -217,14 +217,14 @@ def flatten(S):
217217
def unflatten(in_list, prev_structure):
218218
if not isinstance(in_list, Iterator):
219219
in_list = iter(in_list)
220-
220+
221221
if not isinstance(prev_structure, list):
222222
return in_list.next()
223223
else:
224224
out = []
225225
for item in prev_structure:
226226
out.append(unflatten(in_list, item))
227227
return out
228-
229-
228+
229+
230230

nipype/utils/tests/test_misc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ def test_str2bool():
5454

5555
def test_flatten():
5656
in_list = [[1,2,3],[4],[[5,6],7],8]
57-
57+
5858
flat = flatten(in_list)
5959
yield assert_equal, flat, [1,2,3,4,5,6,7,8]
60-
60+
6161
back = unflatten(flat, in_list)
6262
yield assert_equal, in_list, back
63-
63+
6464
new_list = [2,3,4,5,6,7,8,9]
6565
back = unflatten(new_list, in_list)
6666
yield assert_equal, back, [[2,3,4],[5],[[6,7],8],9]
67-
67+
6868
flat = flatten([])
6969
yield assert_equal, flat, []
70-
70+
7171
back = unflatten([], [])
7272
yield assert_equal, back, []

nipype/workflows/fmri/fsl/estimate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def create_modelfit_workflow(name='modelfit', f_contrasts=False):
9090
iterfield=['tcon_file', 'fcon_file', 'param_estimates',
9191
'sigmasquareds', 'corrections',
9292
'dof_file'])
93-
93+
9494
if f_contrasts:
9595
iterfield = ['in1', 'in2']
9696
else:
@@ -125,7 +125,7 @@ def create_modelfit_workflow(name='modelfit', f_contrasts=False):
125125
(level1design, modelgen, [('fsf_files', 'fsf_file'),
126126
('ev_files', 'ev_files')]),
127127
(modelgen, modelestimate, [('design_file', 'design_file')]),
128-
128+
129129
(merge_contrasts, ztopval,[('out', 'in_file')]),
130130
(ztopval, outputspec, [('out_file', 'pfiles')]),
131131
(merge_contrasts, outputspec,[('out', 'zfiles')]),

0 commit comments

Comments
 (0)