Skip to content

Commit

Permalink
STY: black
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 31, 2024
1 parent c1a3eac commit e89765d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 3 additions & 1 deletion fmriprep/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def main():
from fmriprep.reports.core import generate_reports

# Generate reports phase
session_list = config.execution.get().get('bids_filters', {}).get("bold", {}).get("session")
session_list = (
config.execution.get().get('bids_filters', {}).get("bold", {}).get("session")
)

failed_reports = generate_reports(
config.execution.participant_label,
Expand Down
1 change: 1 addition & 0 deletions fmriprep/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
.. autoclass:: Loader
"""

from __future__ import annotations

import atexit
Expand Down
2 changes: 1 addition & 1 deletion fmriprep/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class GatherConfounds(SimpleInterface):
0 0.1 0.2
"""

input_spec = GatherConfoundsInputSpec
output_spec = GatherConfoundsOutputSpec

Expand Down
16 changes: 10 additions & 6 deletions fmriprep/workflows/bold/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ def init_bbreg_wf(
Co-registration was configured with {dof} degrees of freedom{reason}.
""".format(
dof={6: 'six', 9: 'nine', 12: 'twelve'}[bold2t1w_dof],
reason=''
if bold2t1w_dof == 6
else 'to account for distortions remaining in the BOLD reference',
reason=(
''
if bold2t1w_dof == 6
else 'to account for distortions remaining in the BOLD reference'
),
)

inputnode = pe.Node(
Expand Down Expand Up @@ -486,9 +488,11 @@ def init_fsl_bbr_wf(
""".format(
fsl_ver=fsl.FLIRT().version or '<ver>',
dof={6: 'six', 9: 'nine', 12: 'twelve'}[bold2t1w_dof],
reason=''
if bold2t1w_dof == 6
else 'to account for distortions remaining in the BOLD reference',
reason=(
''
if bold2t1w_dof == 6
else 'to account for distortions remaining in the BOLD reference'
),
)

inputnode = pe.Node(
Expand Down

0 comments on commit e89765d

Please sign in to comment.