Skip to content

Commit c3ee8c7

Browse files
committed
FIX: PEP8 - E265 block comment should start with '# '
1 parent ae91a01 commit c3ee8c7

Some content is hidden

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

79 files changed

+315
-315
lines changed

doc/sphinxext/ipython_console_highlighting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""reST directive for syntax-highlighting ipython interactive sessions.
44
"""
55

6-
#-----------------------------------------------------------------------------
6+
# -----------------------------------------------------------------------------
77
# Needed modules
88

99
# Standard library
@@ -18,11 +18,11 @@
1818
from sphinx import highlighting
1919

2020

21-
#-----------------------------------------------------------------------------
21+
# -----------------------------------------------------------------------------
2222
# Global constants
2323
line_re = re.compile('.*?\n')
2424

25-
#-----------------------------------------------------------------------------
25+
# -----------------------------------------------------------------------------
2626
# Code begins - classes and functions
2727

2828
class IPythonConsoleLexer(Lexer):
@@ -95,6 +95,6 @@ def get_tokens_unprocessed(self, text):
9595
pylexer.get_tokens_unprocessed(curcode)):
9696
yield item
9797

98-
#-----------------------------------------------------------------------------
98+
# -----------------------------------------------------------------------------
9999
# Register the extension as a valid pygments lexer
100100
highlighting.lexers['ipython'] = IPythonConsoleLexer()

doc/sphinxext/numpy_ext/numpydoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def setup(app, get_doc_object_=get_doc_object):
107107
app.add_domain(NumpyPythonDomain)
108108
app.add_domain(NumpyCDomain)
109109

110-
#------------------------------------------------------------------------------
110+
# ------------------------------------------------------------------------------
111111
# Docstring-mangling domains
112-
#------------------------------------------------------------------------------
112+
# ------------------------------------------------------------------------------
113113

114114
from docutils.statemachine import ViewList
115115
from sphinx.domains.c import CDomain

examples/fmri_ants_openfmri.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ def create_fs_reg_workflow(name='registration'):
458458
warpmean.inputs.invert_transform_flags = [False, False]
459459
warpmean.inputs.terminal_output = 'file'
460460
warpmean.inputs.args = '--float'
461-
#warpmean.inputs.num_threads = 4
462-
#warpmean.plugin_args = {'sbatch_args': '--mem=4G -c 4'}
461+
# warpmean.inputs.num_threads = 4
462+
# warpmean.plugin_args = {'sbatch_args': '--mem=4G -c 4'}
463463

464464
"""
465465
Transform the remaining images. First to anatomical and then to target
@@ -1109,7 +1109,7 @@ def get_subs(subject_id, conds, run_id, model_id, task_id):
11091109
fwhm=args.fwhm,
11101110
subjects_dir=args.subjects_dir,
11111111
target=args.target_file)
1112-
#wf.config['execution']['remove_unnecessary_outputs'] = False
1112+
# wf.config['execution']['remove_unnecessary_outputs'] = False
11131113

11141114
wf.base_dir = work_dir
11151115
if args.plugin_args:

examples/fmri_fsl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,6 @@ def subjectinfo(subject_id):
639639
if __name__ == '__main__':
640640
l1pipeline.write_graph()
641641
outgraph = l1pipeline.run()
642-
#l1pipeline.run(plugin='MultiProc', plugin_args={'n_procs':2})
642+
# l1pipeline.run(plugin='MultiProc', plugin_args={'n_procs':2})
643643

644644

examples/fmri_fsl_reuse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ def subjectinfo(subject_id):
253253
"""
254254

255255
if __name__ == '__main__':
256-
#level1_workflow.write_graph()
256+
# level1_workflow.write_graph()
257257
level1_workflow.run()
258-
#level1_workflow.run(plugin='MultiProc', plugin_args={'n_procs':2})
258+
# level1_workflow.run(plugin='MultiProc', plugin_args={'n_procs':2})
259259

260260

examples/fmri_slicer_coregistration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
"""
1515

16-
#raise RuntimeWarning, 'Slicer not fully implmented'
16+
# raise RuntimeWarning, 'Slicer not fully implmented'
1717
from nipype.interfaces.slicer import BRAINSFit, BRAINSResample
1818

1919

examples/fmri_spm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import os # system functions
2222

2323
from nipype import config
24-
#config.enable_provenance()
24+
# config.enable_provenance()
2525

2626
from nipype.interfaces import spm, fsl
2727

examples/fmri_spm_auditory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"""Uncomment the following line for faster execution
9494
"""
9595

96-
#segment.inputs.gaussians_per_class = [1, 1, 1, 4]
96+
# segment.inputs.gaussians_per_class = [1, 1, 1, 4]
9797

9898
"""Warp functional and structural data to SPM's T1 template using
9999
:class:`nipype.interfaces.spm.Normalize`. The tutorial data set

examples/fmri_spm_dartel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
fsl.FSLCommand.set_default_output_type('NIFTI')
4444

4545
# Set the way matlab should be called
46-
#mlab.MatlabCommand.set_default_matlab_cmd("matlab -nodesktop -nosplash")
47-
#mlab.MatlabCommand.set_default_paths('/software/spm8')
46+
# mlab.MatlabCommand.set_default_matlab_cmd("matlab -nodesktop -nosplash")
47+
# mlab.MatlabCommand.set_default_paths('/software/spm8')
4848

4949
"""
5050
Setting up workflows

examples/fmri_spm_face.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"""Uncomment the following line for faster execution
8888
"""
8989

90-
#segment.inputs.gaussians_per_class = [1, 1, 1, 4]
90+
# segment.inputs.gaussians_per_class = [1, 1, 1, 4]
9191

9292
"""Warp functional and structural data to SPM's T1 template using
9393
:class:`nipype.interfaces.spm.Normalize`. The tutorial data set
@@ -352,7 +352,7 @@ def makelist(item):
352352
contrats for a factorial design.
353353
"""
354354

355-
#l1designref.factor_info = [dict(name = 'Fame', levels = 2),
355+
# l1designref.factor_info = [dict(name = 'Fame', levels = 2),
356356
# dict(name = 'Rep', levels = 2)]
357357

358358
l1pipeline.inputs.analysis.modelspec.subject_info = subjectinfo

0 commit comments

Comments
 (0)