Skip to content

Commit a9ce9b7

Browse files
committed
STY: black [ignore-rev]
1 parent bfa37d7 commit a9ce9b7

Some content is hidden

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

46 files changed

+7
-136
lines changed

nipype/algorithms/misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,6 @@ class CalculateNormalizedMoments(BaseInterface):
968968
output_spec = CalculateNormalizedMomentsOutputSpec
969969

970970
def _run_interface(self, runtime):
971-
972971
self._moments = calc_moments(self.inputs.timeseries_file, self.inputs.moment)
973972
return runtime
974973

nipype/algorithms/tests/test_ErrorMap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
def test_errormap(tmpdir):
13-
1413
# Single-Spectual
1514
# Make two fake 2*2*2 voxel volumes
1615
# John von Neumann's birthday

nipype/algorithms/tests/test_misc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
def test_CreateNifti(create_analyze_pair_file_in_directory):
16-
1716
filelist, outdir = create_analyze_pair_file_in_directory
1817

1918
create_nifti = misc.CreateNifti()
@@ -35,7 +34,6 @@ def test_CreateNifti(create_analyze_pair_file_in_directory):
3534

3635

3736
def test_CalculateMedian(create_analyze_pair_file_in_directory):
38-
3937
mean = misc.CalculateMedian()
4038

4139
with pytest.raises(TypeError):

nipype/algorithms/tests/test_normalize_tpms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
def test_normalize_tpms(tmpdir):
19-
2019
in_mask = example_data("tpms_msk.nii.gz")
2120
mskdata = np.asanyarray(nb.load(in_mask).dataobj)
2221
mskdata[mskdata > 0.0] = 1.0

nipype/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def _docdir(request):
2727
# Trigger ONLY for the doctests.
2828
doctest_plugin = request.config.pluginmanager.getplugin("doctest")
2929
if isinstance(request.node, doctest_plugin.DoctestItem):
30-
3130
# Get the fixture dynamically by its name.
3231
tmpdir = pp.local(data_dir)
3332

nipype/external/cloghandler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ def __init__(
151151
)
152152
try:
153153
BaseRotatingHandler.__init__(self, filename, mode, encoding)
154-
except TypeError: # Due to a different logging release without encoding support (Python 2.4.1 and earlier?)
154+
except (
155+
TypeError
156+
): # Due to a different logging release without encoding support (Python 2.4.1 and earlier?)
155157
BaseRotatingHandler.__init__(self, filename, mode)
156158
self.encoding = encoding
157159

nipype/interfaces/afni/preprocess.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,6 @@ class ClipLevel(AFNICommandBase):
11331133
output_spec = ClipLevelOutputSpec
11341134

11351135
def aggregate_outputs(self, runtime=None, needed_outputs=None):
1136-
11371136
outputs = self._outputs()
11381137

11391138
outfile = os.path.join(os.getcwd(), "stat_result.json")
@@ -2295,7 +2294,6 @@ class Seg(AFNICommandBase):
22952294
output_spec = AFNICommandOutputSpec
22962295

22972296
def aggregate_outputs(self, runtime=None, needed_outputs=None):
2298-
22992297
import glob
23002298

23012299
outputs = self._outputs()

nipype/interfaces/afni/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ class BrickStat(AFNICommandBase):
302302
output_spec = BrickStatOutputSpec
303303

304304
def aggregate_outputs(self, runtime=None, needed_outputs=None):
305-
306305
outputs = self._outputs()
307306

308307
outfile = os.path.join(os.getcwd(), "stat_result.json")
@@ -2595,7 +2594,6 @@ def _format_arg(self, name, spec, value):
25952594

25962595

25972596
class ResampleInputSpec(AFNICommandInputSpec):
2598-
25992597
in_file = File(
26002598
desc="input file to 3dresample",
26012599
argstr="-inset %s",

nipype/interfaces/base/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ def run(self, cwd=None, ignore_exception=None, **inputs):
389389
self._check_version_requirements(self.inputs)
390390

391391
with rtc(self, cwd=cwd, redirect_x=self._redirect_x) as runtime:
392-
393392
# Grab inputs now, as they should not change during execution
394393
inputs = self.inputs.get_traitsfree()
395394
outputs = None

nipype/interfaces/base/traits_extension.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ class MultiObject(traits.List):
405405
"""Abstract class - shared functionality of input and output MultiObject"""
406406

407407
def validate(self, objekt, name, value):
408-
409408
# want to treat range and other sequences (except str) as list
410409
if not isinstance(value, (str, bytes)) and isinstance(value, Sequence):
411410
value = list(value)

0 commit comments

Comments
 (0)