Skip to content

Commit 8de096e

Browse files
committed
STY: Black formatting
1 parent 8b6df35 commit 8de096e

File tree

9 files changed

+17
-6
lines changed

9 files changed

+17
-6
lines changed

nibabies/_warnings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Manipulate Python warnings."""
2+
23
import logging
34
import warnings
45

nibabies/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""py.test configuration"""
2+
23
from pathlib import Path
34
from tempfile import TemporaryDirectory
45

nibabies/interfaces/confounds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class GatherConfounds(SimpleInterface):
114114
>>> tmpdir.cleanup()
115115
116116
"""
117+
117118
input_spec = GatherConfoundsInputSpec
118119
output_spec = GatherConfoundsOutputSpec
119120

nibabies/interfaces/maths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A module for interfaces """
2+
23
import os
34

45
import numpy as np

nibabies/workflows/anatomical/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Base anatomical preprocessing."""
2+
23
from __future__ import annotations
34

45
import typing as ty

nibabies/workflows/anatomical/surfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Anatomical surface projections"""
2+
23
from typing import Optional
34

45
from nipype.interfaces import freesurfer as fs

nibabies/workflows/anatomical/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Prepare anatomical images for processing."""
2+
23
from __future__ import annotations
34

45
from nipype.interfaces import utility as niu

nibabies/workflows/bold/registration.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,11 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, bold2t1w_init, omp_nthreads, name="bbre
476476
Co-registration was configured with {dof} degrees of freedom{reason}.
477477
""".format(
478478
dof={6: "six", 9: "nine", 12: "twelve"}[bold2t1w_dof],
479-
reason=""
480-
if bold2t1w_dof == 6
481-
else "to account for distortions remaining in the BOLD reference",
479+
reason=(
480+
""
481+
if bold2t1w_dof == 6
482+
else "to account for distortions remaining in the BOLD reference"
483+
),
482484
)
483485

484486
inputnode = pe.Node(

nibabies/workflows/bold/resampling.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,12 +1099,14 @@ def init_bold_preproc_trans_wf(
10991099
These resampled BOLD time-series will be referred to as *preprocessed
11001100
BOLD in original space*, or just *preprocessed BOLD*.
11011101
""".format(
1102-
transforms="""\
1102+
transforms=(
1103+
"""\
11031104
a single, composite transform to correct for head-motion and
11041105
susceptibility distortions"""
1105-
if use_fieldwarp
1106-
else """\
1106+
if use_fieldwarp
1107+
else """\
11071108
the transforms to correct for head-motion"""
1109+
)
11081110
)
11091111

11101112
inputnode = pe.Node(

0 commit comments

Comments
 (0)