Skip to content

Commit 001af98

Browse files
committed
FIX: PEP8 - E266 too many leading '#' for block comment
1 parent c3ee8c7 commit 001af98

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

nipype/algorithms/tests/test_errormap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_errormap():
4949
result = errmap.run()
5050
yield assert_equal, result.outputs.distance, 1.0
5151

52-
## Multi-Spectual
52+
# Multi-Spectual
5353
volume3 = np.array([[[1.0, 6.0], [0.0, 3.0]], [[1.0, 9.0], [3.0, 6.0]]]) # Raymond Vahan Damadian's birthday
5454

5555
msvolume1 = np.zeros(shape=(2, 2, 2, 2))

nipype/interfaces/ants/base.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def __init__(self, **inputs):
5050

5151
def _num_threads_update(self):
5252
self._num_threads = self.inputs.num_threads
53-
## ONLY SET THE ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS if requested
54-
## by the end user. The default setting did not allow for
55-
## overwriting the default values.
56-
## In ITKv4 (the version used for all ANTS programs), ITK respects
57-
## the SGE controlled $NSLOTS environmental variable.
58-
## If user specifies -1, then that indicates that the system
59-
## default behavior should be the one specified by ITKv4 rules
60-
## (i.e. respect SGE $NSLOTS or environmental variables of threads, or
61-
## user environmental settings)
53+
# ONLY SET THE ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS if requested
54+
# by the end user. The default setting did not allow for
55+
# overwriting the default values.
56+
# In ITKv4 (the version used for all ANTS programs), ITK respects
57+
# the SGE controlled $NSLOTS environmental variable.
58+
# If user specifies -1, then that indicates that the system
59+
# default behavior should be the one specified by ITKv4 rules
60+
# (i.e. respect SGE $NSLOTS or environmental variables of threads, or
61+
# user environmental settings)
6262
if (self.inputs.num_threads == -1):
6363
if (ALT_ITKv4_THREAD_LIMIT_VARIABLE in self.inputs.environ):
6464
del self.inputs.environ[ALT_ITKv4_THREAD_LIMIT_VARIABLE]

nipype/interfaces/ants/legacy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## NOTE: This implementation has been superceeded buy the antsApplyTransform
2-
## implmeentation that more closely follows the strucutre and capabilities
3-
## of the antsApplyTransform program. This implementation is here
4-
## for backwards compatibility.
1+
# NOTE: This implementation has been superceeded buy the antsApplyTransform
2+
# implmeentation that more closely follows the strucutre and capabilities
3+
# of the antsApplyTransform program. This implementation is here
4+
# for backwards compatibility.
55
"""ANTS Apply Transforms interface
66
77
Change directory to provide relative paths for doctests
@@ -122,7 +122,7 @@ def _list_outputs(self):
122122

123123
return outputs
124124

125-
## How do we make a pass through so that GenWarpFields is just an alias for antsIntroduction ?
125+
# How do we make a pass through so that GenWarpFields is just an alias for antsIntroduction ?
126126
class GenWarpFields(antsIntroduction):
127127
pass
128128

nipype/interfaces/dipy/tensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _run_interface(self, runtime):
171171
ten_fit = tensor_fitting(self.inputs.in_file, self.inputs.bvals, self.inputs.bvecs,
172172
self.inputs.mask_file)
173173

174-
## Write as a 3D Nifti image with the original affine
174+
# Write as a 3D Nifti image with the original affine
175175
img = nb.Nifti1Image(tenfit.mode, affine)
176176
out_file = op.abspath(self._gen_outfilename())
177177
nb.save(img, out_file)

0 commit comments

Comments
 (0)