Skip to content

Commit f1cbc1c

Browse files
committed
STY: black 2024.2 [ignore-rev]
1 parent 457cf3c commit f1cbc1c

39 files changed

+47
-15
lines changed

nipype/algorithms/modelgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ def _generate_standard_design(
417417
sessinfo[i]["cond"][cid]["pmod"][j]["poly"] = info.pmod[
418418
cid
419419
].poly[j]
420-
sessinfo[i]["cond"][cid]["pmod"][j][
421-
"param"
422-
] = info.pmod[cid].param[j]
420+
sessinfo[i]["cond"][cid]["pmod"][j]["param"] = (
421+
info.pmod[cid].param[j]
422+
)
423423

424424
sessinfo[i]["regress"] = []
425425
if hasattr(info, "regressors") and info.regressors is not None:

nipype/algorithms/rapidart.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,9 @@ def _detect_outliers_core(self, imgfile, motionfile, runidx, cwd=None):
584584
if displacement is not None:
585585
dmap = np.zeros((x, y, z, timepoints), dtype=np.float64)
586586
for i in range(timepoints):
587-
dmap[
588-
voxel_coords[0], voxel_coords[1], voxel_coords[2], i
589-
] = displacement[i, :]
587+
dmap[voxel_coords[0], voxel_coords[1], voxel_coords[2], i] = (
588+
displacement[i, :]
589+
)
590590
dimg = Nifti1Image(dmap, affine)
591591
dimg.to_filename(displacementfile)
592592
else:

nipype/caching/memory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Using nipype with persistence and lazy recomputation but without explicit
33
name-steps pipeline: getting back scope in command-line based programming.
44
"""
5+
56
import os
67
import hashlib
78
import pickle

nipype/interfaces/ants/legacy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
are preserved for backwards compatibility.
55
"""
66

7-
87
import os
98
from glob import glob
109

nipype/interfaces/ants/registration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The ants module provides basic functions for interfacing with ants
22
functions.
33
"""
4+
45
import os
56

67
from ...utils.filemanip import ensure_list

nipype/interfaces/ants/resampling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""ANTS Apply Transforms interface
22
"""
3+
34
import os
45

56
from .base import ANTSCommand, ANTSCommandInputSpec

nipype/interfaces/ants/segmentation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Wrappers for segmentation utilities within ANTs."""
2+
23
import os
34
from glob import glob
45
from ...external.due import BibTeX

nipype/interfaces/ants/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""ANTs' utilities."""
2+
23
import os
34
from warnings import warn
45
from ..base import traits, isdefined, TraitedSpec, File, Str, InputMultiObject

nipype/interfaces/base/core.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,11 @@ def run(self, cwd=None, ignore_exception=None, **inputs):
380380
"""
381381
rtc = RuntimeContext(
382382
resource_monitor=config.resource_monitor and self.resource_monitor,
383-
ignore_exception=ignore_exception
384-
if ignore_exception is not None
385-
else self.ignore_exception,
383+
ignore_exception=(
384+
ignore_exception
385+
if ignore_exception is not None
386+
else self.ignore_exception
387+
),
386388
)
387389

388390
with indirectory(cwd or os.getcwd()):

nipype/interfaces/c3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Convert3D is a command-line tool for converting 3D images between common file formats."""
2+
23
import os
34
from glob import glob
45

0 commit comments

Comments
 (0)