Skip to content

Commit 945cdae

Browse files
committed
sty: white space
1 parent 46476cb commit 945cdae

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
192192
requires=['sampling_strategy'], desc='')
193193
use_estimate_learning_rate_once = traits.List(traits.Bool(), desc='')
194194
use_histogram_matching = traits.List(traits.Bool(argstr='%s'), default=True, usedefault=True)
195-
# Interpolation flag
195+
# Interpolation flag
196196
interpolation = traits.Enum('Linear',
197197
'NearestNeighbor',
198198
'CosineWindowedSinc',
@@ -339,9 +339,9 @@ def _format_arg(self, opt, spec, val):
339339
if self.inputs.invert_initial_moving_transform:
340340
return '--initial-moving-transform [ %s, 1 ]' % self.inputs.initial_moving_transform
341341
else:
342-
return '--initial-moving-transform [ %s, 0 ]' % self.inputs.initial_moving_transform
343-
elif opt == 'interpolation':
344-
# TODO: handle multilabel, gaussian, and bspline options
342+
return '--initial-moving-transform [ %s, 0 ]' % self.inputs.initial_moving_transform
343+
elif opt == 'interpolation':
344+
# TODO: handle multilabel, gaussian, and bspline options
345345
return '--interpolation %s' % self.inputs.interpolation
346346
elif opt == 'output_transform_prefix':
347347
if isdefined(self.inputs.output_inverse_warped_image) and self.inputs.output_inverse_warped_image:

nipype/interfaces/ants/resampling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ class WarpImageMultiTransformInputSpec(ANTSCommandInputSpec):
106106
input_image = File(argstr='%s', mandatory=True,
107107
desc=('image to apply transformation to (generally a '
108108
'coregistered functional)'), position=2)
109-
output_image = File(genfile=True, hash_files=False, argstr='%s',
109+
output_image = File(genfile=True, hash_files=False, argstr='%s',
110110
desc=('name of the output warped image'), position = 3, xor=['out_postfix'])
111-
out_postfix = File("_wimt", usedefault=True, hash_files=False,
111+
out_postfix = File("_wimt", usedefault=True, hash_files=False,
112112
desc=('Postfix that is prepended to all output '
113113
'files (default = _wimt)'), xor=['output_image'])
114114
reference_image = File(argstr='-R %s', xor=['tightest_box'],
@@ -166,7 +166,7 @@ class WarpImageMultiTransform(ANTSCommand):
166166
_cmd = 'WarpImageMultiTransform'
167167
input_spec = WarpImageMultiTransformInputSpec
168168
output_spec = WarpImageMultiTransformOutputSpec
169-
169+
170170
def _gen_filename(self, name):
171171
if name == 'output_image':
172172
_, name, ext = split_filename(os.path.abspath(self.inputs.input_image))

nipype/interfaces/fsl/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _gen_outfilename(self):
153153
def _list_outputs(self):
154154
outputs = self.output_spec().get()
155155
outputs['out_file'] = self._gen_outfilename()
156-
if ((isdefined(self.inputs.mesh) and self.inputs.mesh) or
156+
if ((isdefined(self.inputs.mesh) and self.inputs.mesh) or
157157
(isdefined(self.inputs.surfaces) and self.inputs.surfaces)):
158158
outputs['meshfile'] = self._gen_fname(outputs['out_file'],
159159
suffix='_mesh.vtk',

nipype/interfaces/fsl/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,14 +1151,14 @@ def _list_outputs(self):
11511151
outputs['exf_mask'] = self._gen_fname(cwd=self.inputs.tmpdir,
11521152
basename='maskexf')
11531153
return outputs
1154-
1154+
11551155
class Reorient2StdInputSpec(FSLCommandInputSpec):
11561156
in_file = File(exists=True, mandatory=True, argstr="%s")
11571157
out_file = File(genfile=True, hash_files=False, argstr="%s")
1158-
1158+
11591159
class Reorient2StdOutputSpec(TraitedSpec):
11601160
out_file = File(exists=True)
1161-
1161+
11621162
class Reorient2Std(FSLCommand):
11631163
"""fslreorient2std is a tool for reorienting the image to match the
11641164
approximate orientation of the standard template images (MNI152).
@@ -1180,7 +1180,7 @@ def _gen_filename(self, name):
11801180
return self._gen_fname(self.inputs.in_file,
11811181
suffix="_reoriented")
11821182
return None
1183-
1183+
11841184
def _list_outputs(self):
11851185
outputs = self.output_spec().get()
11861186
if not isdefined(self.inputs.out_file):

nipype/workflows/smri/ants/ANTSBuildTemplate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ def ANTSTemplateBuildSingleIterationWF(iterationPhasePrefix=''):
9898
Inputs::
9999
100100
inputspec.images :
101-
inputspec.fixed_image :
101+
inputspec.fixed_image :
102102
inputspec.ListOfPassiveImagesDictionaries :
103103
104104
Outputs::
105105
106106
outputspec.template :
107107
outputspec.transforms_list :
108-
outputspec.passive_deformed_templates :
108+
outputspec.passive_deformed_templates :
109109
"""
110110

111111

nipype/workflows/smri/ants/antsRegistrationBuildTemplate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ def antsRegistrationTemplateBuildSingleIterationWF(iterationPhasePrefix=''):
155155
Inputs::
156156
157157
inputspec.images :
158-
inputspec.fixed_image :
158+
inputspec.fixed_image :
159159
inputspec.ListOfPassiveImagesDictionaries :
160160
inputspec.interpolationMapping :
161161
162162
Outputs::
163163
164164
outputspec.template :
165165
outputspec.transforms_list :
166-
outputspec.passive_deformed_templates :
166+
outputspec.passive_deformed_templates :
167167
"""
168168
TemplateBuildSingleIterationWF = pe.Workflow(name = 'antsRegistrationTemplateBuildSingleIterationWF_'+str(iterationPhasePrefix) )
169169

0 commit comments

Comments
 (0)