Skip to content

Commit 9688171

Browse files
committed
sty: removed white space as a result of check-before-commit
1 parent 4eb6599 commit 9688171

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+207
-207
lines changed

doc/sphinxext/autosummary_generate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
for name, path in sorted(names.items()):
5555
if options.output_dir is not None:
5656
path = options.output_dir
57-
57+
5858
if not os.path.isdir(path):
5959
os.makedirs(path)
6060

@@ -121,7 +121,7 @@ def get_documented_in_docstring(name, module=None, filename=None):
121121
"""
122122
Find out what items are documented in the given object's docstring.
123123
See `get_documented_in_lines`.
124-
124+
125125
"""
126126
try:
127127
obj, real_name = import_by_name(name)
@@ -136,7 +136,7 @@ def get_documented_in_docstring(name, module=None, filename=None):
136136
def get_documented_in_lines(lines, module=None, filename=None):
137137
"""
138138
Find out what items are documented in the given lines
139-
139+
140140
Returns
141141
-------
142142
documented : dict of list of (filename, title, keyword, toctree)
@@ -153,15 +153,15 @@ def get_documented_in_lines(lines, module=None, filename=None):
153153
module_re = re.compile(r'^\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$')
154154
autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*.*?')
155155
toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$')
156-
156+
157157
documented = {}
158-
158+
159159
current_title = []
160160
last_line = None
161161
toctree = None
162162
current_module = module
163163
in_autosummary = False
164-
164+
165165
for line in lines:
166166
try:
167167
if in_autosummary:

doc/sphinxext/inheritance_diagram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def my_import(name):
4848
"""Module importer - taken from the python documentation.
4949
5050
This function allows importing names with dots in them."""
51-
51+
5252
mod = __import__(name)
5353
components = name.split('.')
5454
for comp in components[1:]:
@@ -103,7 +103,7 @@ def _import_class_or_module(self, name):
103103
# second call will force the equivalent of 'import a.b' to happen
104104
# after the top-level import above.
105105
my_import(fullname)
106-
106+
107107
except ImportError:
108108
raise ValueError(
109109
"Could not import class or module '%s' specified for inheritance diagram" % name)

doc/sphinxext/ipython_console_highlighting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Third party
1313
from pygments.lexer import Lexer, do_insertions
14-
from pygments.lexers.agile import (PythonConsoleLexer, PythonLexer,
14+
from pygments.lexers.agile import (PythonConsoleLexer, PythonLexer,
1515
PythonTracebackLexer)
1616
from pygments.token import Comment, Generic
1717

@@ -47,7 +47,7 @@ class IPythonConsoleLexer(Lexer):
4747
4848
- It assumes the default IPython prompts, not customized ones.
4949
"""
50-
50+
5151
name = 'IPython console session'
5252
aliases = ['ipython']
5353
mimetypes = ['text/x-ipython-console']

nipype/external/provcopy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def provn_representation(self):
328328

329329
def json_representation(self):
330330
return {'$': self._uri, 'type': u'xsd:anyURI'}
331-
331+
332332
def rdf_representation(self):
333333
return URIRef(self.get_uri())
334334

@@ -703,7 +703,7 @@ def rdf(self, graph=None, subj=None):
703703
obj = RDFLiteral(value)
704704
graph.add((subj, pred, obj))
705705
return graph
706-
706+
707707
def is_asserted(self):
708708
return self._asserted
709709

@@ -718,7 +718,7 @@ def is_relation(self):
718718
class ProvElement(ProvRecord):
719719
def is_element(self):
720720
return True
721-
721+
722722
def rdf(self, graph=None):
723723
if graph is None:
724724
graph = Graph()
@@ -1524,15 +1524,15 @@ def rdf(self, graph=None):
15241524
# graph should not None here
15251525
uri = self.get_identifier().rdf_representation()
15261526
graph = Graph(graph.store, uri)
1527-
1527+
15281528
for prefix, namespace in self._namespaces.items():
15291529
graph.bind(prefix, namespace.get_uri())
1530-
1530+
15311531
for record in self._records:
15321532
if record.is_asserted():
15331533
record.rdf(graph)
15341534
return graph
1535-
1535+
15361536
def get_provjson(self, **kw):
15371537
"""Return the `PROV-JSON <http://www.w3.org/Submission/prov-json/>`_ representation for the bundle/document.
15381538

nipype/interfaces/afni/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def standard_image(img_name):
101101
class AFNIBaseCommandInputSpec(CommandLineInputSpec):
102102
outputtype = traits.Enum('AFNI', Info.ftypes.keys(),
103103
desc='AFNI output filetype')
104-
104+
105105
class AFNITraitedSpec(AFNIBaseCommandInputSpec):
106106
pass
107107

@@ -113,12 +113,12 @@ class AFNIBaseCommand(CommandLine):
113113

114114
input_spec = AFNIBaseCommandInputSpec
115115
_outputtype = None
116-
116+
117117

118118
def __init__(self, **inputs):
119119
super(AFNIBaseCommand, self).__init__(**inputs)
120120
self.inputs.on_trait_change(self._output_update, 'outputtype')
121-
121+
122122
if self._outputtype is None:
123123
self._outputtype = Info.outputtype()
124124

nipype/interfaces/afni/preprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ class AutoTcorrelateInputSpec(AFNICommandInputSpec):
334334
mask_only_targets = traits.Bool(desc="use mask only on targets voxels",
335335
argstr="-mask_only_targets",
336336
xor=['mask_source'])
337-
338-
mask_source = File(exists=True,
339-
desc="mask for source voxels",
337+
338+
mask_source = File(exists=True,
339+
desc="mask for source voxels",
340340
argstr="-mask_source %s",
341341
xor=['mask_only_targets'])
342342

nipype/interfaces/ants/registration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class Registration(ANTSCommand):
390390
"""
391391
DEF_SAMPLING_STRATEGY = 'Dense'
392392
"""The default sampling stratey argument."""
393-
393+
394394
_cmd = 'antsRegistration'
395395
input_spec = RegistrationInputSpec
396396
output_spec = RegistrationOutputSpec
@@ -399,7 +399,7 @@ class Registration(ANTSCommand):
399399
def _formatMetric(self, index):
400400
"""
401401
Format the antsRegistration -m metric argument(s).
402-
402+
403403
Parameters
404404
----------
405405
index: the stage index
@@ -427,7 +427,7 @@ def _formatMetric(self, index):
427427
sampling_percentage = self.inputs.sampling_percentage[index]
428428
if sampling_percentage:
429429
stage_inputs['sampling_percentage'] = sampling_percentage
430-
430+
431431
# Make a list of metric specifications, one per -m command line
432432
# argument for the current stage.
433433
# If there are multiple inputs for this stage, then convert the
@@ -442,15 +442,15 @@ def _formatMetric(self, index):
442442
specs = [dict([(k, v[i]) for k,v in items]) for i in indexes]
443443
else:
444444
specs = [stage_inputs]
445-
445+
446446
# Format the --metric command line metric arguments, one per specification.
447447
return [self._formatMetricArgument(fixed, moving, **spec) for spec in specs]
448-
448+
449449
def _formatMetricArgument(self, fixed, moving, **kwargs):
450450
retval = '%s[ %s, %s, %g, %d' % (kwargs['metric'],
451451
fixed, moving, kwargs['weight'],
452452
kwargs['radius_or_bins'])
453-
453+
454454
# The optional sampling strategy.
455455
if kwargs.has_key('sampling_strategy'):
456456
sampling_strategy = kwargs['sampling_strategy']
@@ -465,9 +465,9 @@ def _formatMetricArgument(self, fixed, moving, **kwargs):
465465
retval += ', %s' % sampling_strategy
466466
if kwargs.has_key('sampling_percentage'):
467467
retval += ', %g' % kwargs['sampling_percentage']
468-
468+
469469
retval += ' ]'
470-
470+
471471
return retval
472472

473473
def _formatTransform(self, index):

nipype/interfaces/ants/resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _list_outputs(self):
9999
self.inputs.out_postfix,
100100
ext)))
101101
return outputs
102-
102+
103103
def _run_interface(self, runtime):
104104
runtime = super(WarpTimeSeriesImageMultiTransform, self)._run_interface(runtime, correct_return_codes = [0,1])
105105
if "100 % complete" not in runtime.stdout:

nipype/interfaces/base.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ class CommandLineInputSpec(BaseInterfaceInputSpec):
13691369
desc=('Control terminal output: `stream` - displays'
13701370
'to terminal immediately, `allatonce` - waits till '
13711371
'command is finished to display output, `file` - writes'
1372-
'output to file, `none` - output is ignored'),
1372+
'output to file, `none` - output is ignored'),
13731373
nohash=True, mandatory=True)
13741374

13751375
class CommandLine(BaseInterface):
@@ -1692,17 +1692,17 @@ def _gen_outfilename(self):
16921692
raise NotImplementedError
16931693

16941694
class MpiCommandLineInputSpec(CommandLineInputSpec):
1695-
use_mpi = traits.Bool(False,
1695+
use_mpi = traits.Bool(False,
16961696
desc="Whether or not to run the command with mpiexec",
16971697
usedefault=True)
16981698
n_procs = traits.Int(desc="Num processors to specify to mpiexec. Do not "
16991699
"specify if this is managed externally (e.g. through "
17001700
"SGE)")
1701-
1701+
17021702

17031703
class MpiCommandLine(CommandLine):
1704-
'''Implements functionality to interact with command line programs
1705-
that can be run with MPI (i.e. using 'mpiexec').
1704+
'''Implements functionality to interact with command line programs
1705+
that can be run with MPI (i.e. using 'mpiexec').
17061706
17071707
Examples
17081708
--------
@@ -1711,21 +1711,21 @@ class MpiCommandLine(CommandLine):
17111711
>>> mpi_cli.inputs.args = '-v'
17121712
>>> mpi_cli.cmdline
17131713
'my_mpi_prog -v'
1714-
1714+
17151715
>>> mpi_cli.inputs.use_mpi = True
17161716
>>> mpi_cli.inputs.n_procs = 8
1717-
>>> mpi_cli.cmdline
1717+
>>> mpi_cli.cmdline
17181718
'mpiexec -n 8 my_mpi_prog -v'
17191719
'''
17201720
input_spec = MpiCommandLineInputSpec
1721-
1721+
17221722
@property
17231723
def cmdline(self):
17241724
"""Adds 'mpiexec' to begining of command"""
17251725
result = []
17261726
if self.inputs.use_mpi:
17271727
result.append('mpiexec')
1728-
if self.inputs.n_procs:
1728+
if self.inputs.n_procs:
17291729
result.append('-n %d' % self.inputs.n_procs)
17301730
result.append(super(MpiCommandLine, self).cmdline)
17311731
return ' '.join(result)

nipype/interfaces/c3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class C3dAffineTool(SEMLikeCommandLine):
2929
3030
Example
3131
=======
32-
32+
3333
>>> from nipype.interfaces.c3 import C3dAffineTool
3434
>>> c3 = C3dAffineTool()
3535
>>> c3.inputs.source_file = 'cmatrix.mat'

0 commit comments

Comments
 (0)