Skip to content

Commit 12deb95

Browse files
committed
STY: black
1 parent c9e7097 commit 12deb95

Some content is hidden

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

41 files changed

+92
-97
lines changed

nipype/algorithms/confounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class CompCor(SimpleInterface):
577577
]
578578

579579
def __init__(self, *args, **kwargs):
580-
""" exactly the same as compcor except the header """
580+
"""exactly the same as compcor except the header"""
581581
super(CompCor, self).__init__(*args, **kwargs)
582582
self._header = "CompCor"
583583

@@ -774,7 +774,7 @@ class ACompCor(CompCor):
774774
"""
775775

776776
def __init__(self, *args, **kwargs):
777-
""" exactly the same as compcor except the header """
777+
"""exactly the same as compcor except the header"""
778778
super(ACompCor, self).__init__(*args, **kwargs)
779779
self._header = "aCompCor"
780780

@@ -825,7 +825,7 @@ class TCompCor(CompCor):
825825
output_spec = TCompCorOutputSpec
826826

827827
def __init__(self, *args, **kwargs):
828-
""" exactly the same as compcor except the header """
828+
"""exactly the same as compcor except the header"""
829829
super(TCompCor, self).__init__(*args, **kwargs)
830830
self._header = "tCompCor"
831831
self._mask_files = []

nipype/algorithms/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class TVTKBaseInterface(BaseInterface):
26-
""" A base class for interfaces using VTK """
26+
"""A base class for interfaces using VTK"""
2727

2828
_redirect_x = True
2929

nipype/algorithms/modelgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def _generate_design(self, infolist=None):
516516
)
517517

518518
def _run_interface(self, runtime):
519-
""""""
519+
""" """
520520
self._sessioninfo = None
521521
self._generate_design()
522522
return runtime

nipype/algorithms/tests/test_CompCor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class TestCompCor:
14-
""" Note: Tests currently do a poor job of testing functionality """
14+
"""Note: Tests currently do a poor job of testing functionality"""
1515

1616
filenames = {
1717
"functionalnii": "compcorfunc.nii",

nipype/algorithms/tests/test_TSNR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class TestTSNR:
17-
""" Note: Tests currently do a poor job of testing functionality """
17+
"""Note: Tests currently do a poor job of testing functionality"""
1818

1919
in_filenames = {"in_file": "tsnrinfile.nii"}
2020

nipype/external/cloghandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def flush(self):
222222
pass
223223

224224
def _degrade(self, degrade, msg, *args):
225-
""" Set degrade mode or not. Ignore msg. """
225+
"""Set degrade mode or not. Ignore msg."""
226226
self._rotateFailed = degrade
227227
del msg, args # avoid pychecker warnings
228228

nipype/interfaces/base/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def version(self):
8787

8888
@classmethod
8989
def _outputs(cls):
90-
""" Initializes outputs"""
90+
"""Initializes outputs"""
9191
raise NotImplementedError
9292

9393
@classmethod
9494
def help(cls, returnhelp=False):
95-
""" Prints class help """
95+
"""Prints class help"""
9696
allhelp = format_help(cls)
9797
if returnhelp:
9898
return allhelp
@@ -112,7 +112,7 @@ def aggregate_outputs(self, runtime=None, needed_outputs=None):
112112
raise NotImplementedError
113113

114114
def _list_outputs(self):
115-
""" List expected outputs"""
115+
"""List expected outputs"""
116116
raise NotImplementedError
117117

118118
@classmethod

nipype/interfaces/base/specs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class BaseTraitedSpec(traits.HasTraits):
5858
package_version = nipype_version
5959

6060
def __init__(self, **kwargs):
61-
""" Initialize handlers and inputs"""
61+
"""Initialize handlers and inputs"""
6262
# NOTE: In python 2.6, object.__init__ no longer accepts input
6363
# arguments. HasTraits does not define an __init__ and
6464
# therefore these args were being ignored.
@@ -79,7 +79,7 @@ def items(self):
7979
yield name, self.traits()[name]
8080

8181
def __repr__(self):
82-
""" Return a well-formatted representation of the traits """
82+
"""Return a well-formatted representation of the traits"""
8383
outstr = []
8484
for name, value in sorted(self.trait_get().items()):
8585
outstr.append("%s = %s" % (name, value))

nipype/interfaces/cmtk/cmtk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def cmat(
190190
endpoint_name,
191191
intersections=False,
192192
):
193-
""" Create the connection matrix for each resolution using fibers and ROIs. """
193+
"""Create the connection matrix for each resolution using fibers and ROIs."""
194194
import scipy.io as sio
195195

196196
stats = {}
@@ -460,7 +460,7 @@ def cmat(
460460

461461

462462
def save_fibers(oldhdr, oldfib, fname, indices):
463-
""" Stores a new trackvis file fname using only given indices """
463+
"""Stores a new trackvis file fname using only given indices"""
464464
hdrnew = oldhdr.copy()
465465
outstreams = []
466466
for i in indices:

nipype/interfaces/dipy/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828

2929
def no_dipy():
30-
""" Check if dipy is available """
30+
"""Check if dipy is available"""
3131
global HAVE_DIPY
3232
return not HAVE_DIPY
3333

3434

3535
def dipy_version():
36-
""" Check dipy version """
36+
"""Check dipy version"""
3737
if no_dipy():
3838
return None
3939

0 commit comments

Comments
 (0)